The CGI module

This module enables the use of CGI (Common Gateway Interface) compliant programs and scripts to be executed.

Example file (test.cgi)

	#!/bin/sh

	echo "Content-Type: text/html"
	echo ""
	echo "Hello, World"

	exit 0

System issues

Causes the server to close Keep-Alive sockets after the file has been sent (since it can't depend on the "Content-Length" header being present and/or correct).

Configuration options (cgi.conf)

default-user (string)
The user name or number to run global CGI scripts as. Defaults to user number -1 (normally "nobody"). Also sets the default-group option to the group found in the Passwd database.

default-group (string)
The group name or number to run global CGI scripts as. Defaults to group number -1 (normally "nobody").

allow-user-cgi (boolean)
If set to "false", will disable the possibilty for normal users to have CGI scripts in their local home pages directory.

path (string)
The PATH to use for CGI scripts. Defaults to "/bin:/usr/bin".

Example configuration file

	# cgi.conf

	default-user = nobody
	path         = /bin:/usr/ucb:/usr/local/bin