The Hydrant HTTPD
- Virtues of this multi-threading httpd
- How to set up Hydrant
- How to use Hydrant's message relay feature
- Manual page for Hydrant
La la la ...
The Manual Page for Hydrant
hydrant [flag [argument]]
Root of the data directory.
Default port is 80.
Default size is 8096 bytes.
Path to log file.
Return 'index.html' if the URL points to a directory.
If -i is used, then if the URL path points to a directory,
hydrant will check to see if that directory contains a file called
index.html. If it exits, it'll be returned instead of the
Note: hydrant doesn't yet return a directory listing.
1) Compile hydrant.
cc hydrant.c -o hydrant
mv hydrant /usr/work/gnn
2) Watch the log for start up errors. Try another port using the
-p option if the default port is not available.
For security reasons, make sure you use the -d to confine
outside access to within that directory.
./hydrant -d /usr/work
Log file format
Standard HTTP log format, with the following exceptions:
unknown client machine name is denoted by "???";
server error/dianostic messages are intermixed with the access log,
but is preceeded with "XXX" characters (filter these lines out to
get just the access info).