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 ["]Option1["] ["]Option2["]
"#<--- Right there"
-Quotes are required when option contains space [or tab?...]
-Separator between Command-Option1-Option2 is tab and space
Supported Configuration Commands:
Server [ "all" | `hostname` ]
Global
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"
BindPath localpath virtualpath
All paths must end in a forward slash to be accepted
Server
Will map all files and directories
within the 'virtualpath' hierarchy to localpath.
It works similar to how filesystems are mounted
in Unix.
Link oldserver newserver
"all" may be used for oldserver/newserver
Global
Creates a symlink for newserver hostname to oldserver data.
Any data changes after that point made to either will affect only oldserver
DirIndex indexfile
Server
Will add indexfile to the bottom of the list
containing filenames used as a directory index file.
defaulttype mimetype
Global
Any file which cannot be matched to a bindtype
will default to `mimetype`.
BindType extension mimetype
Global
Will set mime type for certain file extensions.
indexcgi [ "on" | "off" ]
Server
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"
cgipath localpath
Server
Any directory/file, after dealiased, if contained
in hierarchy of `localpath` run as cgi program.
Include Filename
Global
For use of separate configuration
file.
Bind portnumber
Global
Which port the server will listen on.
maxheaderdata numberofbytes
Global
Number of maximum bytes allowed for the header. 0 for infinite.
maxrequestdata numberofbytes
Global
Number of maximum bytes allowed for the request data. 0 for infinite.