mod_cgi.html revision 3d76f0e292da6a107829fbe83f98b8c0985c6ddb
<!--%hypertext -->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Apache module mod_cgi</title>
</head>
<body>
<!--/%hypertext -->
<h1>Module mod_cgi</h1>
is compiled in by default. It provides for execution of CGI scripts.
processed by this module.
<!--%plaintext <?INDEX {\tt application/x-httpd-cgi} mime type> -->
<!--%plaintext <?INDEX CGI scripts> -->
<h2>Summary</h2>
will be treated as a CGI script, and run by the server, with its output
being returned to the client. Files acquire this type either by
having a name ending in an extension defined by the
When the server invokes a CGI script, it will add a variable called
<code>DOCUMENT_ROOT</code> to the environment. This variable will contain the
configuration variable.
<h2>CGI Environment variables</h2>
The server will set the CGI environment variables as described in the CGI
specification, with the following provisos:
<dl>
<dt>REMOTE_HOST
<dd>This will only be set if the server has not been compiled with
<code>MINIMAL_DNS</code>.
<dt>REMOTE_IDENT
<dd>This will only be set if
<dt>REMOTE_USER
<dd>This will only be set if the CGI script is subject to authentication.
</dl>
<P>
<!--%hypertext -->
<HR>
</BODY>
</HTML>
<!--/%hypertext -->