Every working server requires at least one "Server", and "BindPath" directive.
If this is not present, you will continue to receive a 400 error code by the server.




Command format:
Command ["]Option1["] ["]Option2["]
Comment format:
"#<--- Right there"
Note:
-Quotes are required when option contains space [or tab?...]
-Separator between Command-Option1-Option2 is tab and space


Supported Configuration Commands:

Command:
Server [ "all" | `hostname` ]
Context:
Global
Description:
Define new virtual server, everything after this, in current file, is marked on the current server. If server context. "all" is used for to catch anything not found by the host name. Most sites may just use a "server all"

Command:
BindPath localpath virtualpath
Note:
All paths must end in a forward slash to be accepted
Context:
Server
Description:
Will map all files and directories within the 'virtualpath' hierarchy to localpath. It works similar to how filesystems are mounted in Unix.

Command:
Link oldserver newserver
Note:
"all" may be used for oldserver/newserver
Context:
Global
Description:
Creates a symlink for newserver hostname to oldserver data. Any data changes after that point made to either will affect only oldserver

Command:
DirIndex indexfile
Context:
Server
Description:
Will add indexfile to the bottom of the list containing filenames used as a directory index file.

Command:
defaulttype mimetype
Default: text/plain
Context:
Global
Description:
Any file which cannot be matched to a bindtype
will default to `mimetype`.

Command:
BindType extension mimetype
Context:
Global
Description:
Will set mime type for certain file extensions.

Command:
indexcgi [ "on" | "off" ]
Default: off
Context:
Server
Description:
If/when any index.cgi is ever accessed it is run as a cgi program.
Most useful when used in conjunction with "dirindex index.cgi"

Command:
cgipath localpath
Context:
Server
Description:
Any directory/file, after dealiased, if contained in hierarchy of `localpath` run as cgi program.

Command:
Include Filename
Context:
Global
Description:
For use of separate configuration file.

Command:
Bind portnumber
Default: 80
Context:
Global
Description:
Which port the server will listen on.

Command:
maxheaderdata numberofbytes
Default: 1024
Context:
Global
Description:
Number of maximum bytes allowed for the header. 0 for infinite.

Command:
maxrequestdata numberofbytes
Default: 1024
Context:
Global
Description:
Number of maximum bytes allowed for the request data. 0 for infinite.