Skip to content

raydwaipayan/minihttpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

minihttpd

What is it?

A tiny http web server to serve static content and execute php scripts (php-cgi).

The server optionally supports php-fpm through an optional fastcgi configuration that needs to be enabled during compilation.

Usage

./minihttpd [Directory] [PORT (default = 8000)]
  • On some systems the server is needed to be run as root.

Build

The binary can be built by simply running:

make

The minihttpd binary is deployed to ./build

Enable FAST CGI

The web server can use fast cgi just by setting a macro in srd/httpd.c:

#define FAST_CGI 1

About

Minimal http web server written in c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published