![]() | :: | Software | :: | shttpd |
cgi-config user loguser dir port progwhere user and loguser are system account names, dir is an absolute path name, and port is a TCP port, and prog is one or more arguments specifying a program to run for each valid cgi request. The port may be specified as a name from /etc/services or a numeric value.
cgi-config creates the directory dir as an svscan-format service directory, configured to run cgi-httpd on the TCP port port, running cgi-httpd as user and creating log files as loguser, and executing prog for each cgi request it receives.
cgi-config creates the directory dir/env containing files that establish runtime environment variables for cgi-httpd via envdir.
cgi-config creates the directory dir/root for cgi-httpd to use as its root directory. cgi-config also creates dir/root/bin to hold cgi executable files, and dir/root/host to hold the per-host working directories.