muhttpd.conf(5)

NAME
muhttpd.conf - configuration file for muhttpd

DESCRIPTION
The configuration file muhttpd.conf consists of configuration directives, one per line. Each configuration directive consists of one or more words, separated by whitespace. The file can also contain comments, which start with a hash mark (#) and run until the end of the line.

DIRECTIVES
The following directives are supported:

group groupname
    Switch to groupname before starting to accept connections

handler type program
    Pass files of MIME type type through program

logfile file
    Log incoming requests to file

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

port n
    Listen for connections on port n

type type ext ...
    Treat files whose names end in one of the strings in ext as if they were of MIME type type

user username
    Switch to username before starting to accept connections

webdir path
    Use path as the directory containing the web pages

webroot path
    chroot(2) to path

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

SEE ALSO
muhttpd(8)