SuperScript::Software::shttpd

The cgiuser-config program


Interface

  cgiuser-config user loguser dir port prog
where 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.

cgiuser-config creates the directory dir as an svscan-format service directory, configured to run cgiuser-httpd on the TCP port port, running cgiuser-httpd as user and creating log files as loguser, and executing prog for each cgi request it receives.

cgiuser-config creates the directory dir/env containing files that establish runtime environment variables for cgiuser-httpd via envdir.

cgiuser-config creates the directory dir/root for cgiuser-httpd to use as its root directory. cgiuser-config also creates dir/root/bin to hold cgi executable files, and dir/root/host to hold the per-host working directories.