Configuration |
Each line of the configuration file is in the form:
<option> <value>
There are ignored during parsing:
Words can be separated by space(s) and tab(s).
The options are:
| HostName | The host name, if omitted, hserv tries to obtain it from the
socket name. Don't set it if you don't know what you are doing. Default: none |
| HostPort | The TCP port to use (of course, only valid if running as
stand alone, otherwise the port is set in the services database). Default: 80 |
| Admin | Any occurrence of <!admin> in a text is converted to <A HREF="mailto:admin>WebMaster</A> Default: none |
| Status | Status of the server Values are OPENED PAUSED Default: OPENED |
| DocumentDir | The dir where documents are Default: PROGDIR:htdocs |
| DocumentIndex | Any request with a null file name is replaced
with this. Default: index.html |
| Signature | This is a complete path to a file, hserv will use as footer anytime it must report an error. |
| Timeout | Timeout in seconds for the receive request and send phase. Default: 300 |
| KeepAlive | Number of persistent connections for one instance of hs. Default: 4 |
| SendDelta | The size of data in tcp send transactions. Default: 512 |
| Pri | At which priority must run any instance of hserv. Default: -3 |
| CgiDir | The directory where CGI macros are. Default: PROGDIR:cgi-bin |
| PerlPath | Complete path to perl, if you have it. Default: none |
| RebolPath | Complete path to Rebol, if you have it. Default: none |
| CGIMod | CGIMod file. Default: none |
| DisableCGI | Disable the usage of CGI. Values are YES NO Default: NO |
| Auth | Authorizations file. Default none |
| RejectedIP | Rejected IPs file. Default: none |
| Mime | Mime file. Default: none |
| Handlers | Handlers file. Default: none |
| VirtualHosts | Virtual hosts file. Default: none |
| Errors | Special errors file. Default: none |
| Referers | Referers file. Default: none |
| Specials | Specials file. Default: none |
| TransferLog | A flag that indicates if requests must be logged. Values are ON OFF SYS Default: OFF |
| TransferFile | If TransferLog is ON, log requests in this file. Default: none |
| ErrorLog | A flag that indicates if errors must be logged. Values are ON OFF SYS Default: SYS |
| ErrorFile | If ErrorLog is ON, log error in this file. Default: none |
| HostNameLookups | A flags that indicates if the server should do a
GetHostByName() on the client ip. Values are ON OFF Default: OFF |
| Ident | A flag that indicates if the client must have the ident
service running; the server will connect it and get client ident. Values are ON OFF Default: OFF |
| OnlyAmigaClient | Only Amiga client accepted; clients without the word
"Amiga" in User-Agent field are rejected. Values are ON OFF Default: OFF |
| DefImage | Sends images/def.image on errors. Values are ON OFF Default:ON |
The DocumentIndex and the access to a single drawer may be controlled specifying a dir.conf file.