![]() | :: | Software | :: | shttpd |
constant-config user loguser dir port filewhere user and loguser are system account names, dir is an absolute path name, port is a TCP port, and file is a file name. The port may be specified as a name from /etc/services or a numeric value.
constant-config creates the directory dir as an svscan-format service directory, configured to run constant-httpd on the TCP port port, running constant-httpd as user and creating log files as loguser.
constant-config creates the directory dir/env containing files that establish runtime environment variables for constant-httpd via envdir. The variables include $UID, $GID, $ROOT, and $REQUESTHOST.
constant-config creates the directory dir/root for constant-httpd to use as its root directory.
constant-config creates an empty dir/env/REQUESTHOST, causing constant-httpd to respect the host named in each request. To force constant-httpd to use a particular host name, overriding the host obtained from a request, edit dir/env/REQUESTHOST after running constant-config.