muhttpd 1.0.7 review

Download
by rbytes.net on

muhttpd (mu HTTP deamon) is a simple but complete Web server written in portable ANSI C

License: MIT/X Consortium License
File size: 1K
Developer: Robbert Haarman
0 stars award from rbytes.net

muhttpd (mu HTTP deamon) is a simple but complete Web server written in portable ANSI C. It supports static pages, CGI scripts, and MIME type based handlers.

It drops privileges before accepting any connections, and can log received requests.

It has been tested on OpenBSD, GNU/Linux, NetBSD, FreeBSD, Mac OS X, and Cygwin. muhttpd runs successfully on 32-bits, 64-bit, little endian, and big endian systems.

muhttpd understands a few configuration directives, described below.

port n Listen for connections on port n
webdir path Use path as the directory containing the web pages
webroot path chroot(2) to path
type type ext+ Treat files whose names end in one of the strings in ext+ (a space separated list) as if they were of type type
handler type program Pass files of type type through program
include file Read file as a configuration file
index name+ Specify which file to send when a directory index is requested. The first matching name is used
user username Switch to username before starting to accept connections
group groupname Switch to groupname before starting to accept connections
logfile file Log incoming requestst to file

Example:

port 80
webdir /var/www
logfile /var/log/muhttpd/logfile
user www
group www
index index.html index.php

type text/html .html
type text/css .css
type text/plain .txt
type application/x-httpd-php .php
type image/png .png
type image/jpeg .jpg .jpeg

handler application/x-httpd-php /usr/lib/cgi-bin/php

What's New in This Release:
Fixes logging of IP addresses on OpenBSD.
Flushes the log file before calling exec(2) to make sure entries make it to the log file.
Connects standard error to the log file so errors from scripts are logged.

muhttpd 1.0.7 keywords