Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 786 Bytes

Readme.md

File metadata and controls

40 lines (26 loc) · 786 Bytes

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