mod_cgi.html revision 44afbb2bc1622ddf021058e2a157cfd31fb67fd0
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<!--#include virtual="header.html" -->
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncThis module is contained in the <code>mod_cgi.c</code> file, and
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncis compiled in by default. It provides for execution of CGI scripts.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncAny file with mime type <code>application/x-httpd-cgi</code> will be
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncprocessed by this module.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<!--%plaintext <?INDEX {\tt application/x-httpd-cgi} mime type> -->
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<!--%plaintext <?INDEX CGI scripts> -->
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncAny file that has the mime type <code>application/x-httpd-cgi</code>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncor handler <code>cgi-script</code> (Apache 1.1 or later)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncwill be treated as a CGI script, and run by the server, with its output
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncbeing returned to the client. Files acquire this type either by
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsynchaving a name ending in an extension defined by the
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<A HREF="mod_mime.html#addtype">AddType</A> directive, or by being in
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsynca <A HREF="mod_alias.html#scriptalias">ScriptAlias</A> directory. <p>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncWhen the server invokes a CGI script, it will add a variable called
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<code>DOCUMENT_ROOT</code> to the environment. This variable will contain the
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncvalue of the <A HREF="core.html#documentroot">DocumentRoot</A>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncconfiguration variable.
<!--#include virtual="footer.html" -->