From: Vincent Bray Date: Mon, 23 Jul 2007 15:05:00 +0000 (+0000) Subject: Backport r558718 to 2.2 [Demote use of AddType for cgi and remove redundant paragraph... X-Git-Tag: 2.2.5~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ae46a7b118c399676df2f5bff8d58ad26a80a0;p=thirdparty%2Fapache%2Fhttpd.git Backport r558718 to 2.2 [Demote use of AddType for cgi and remove redundant paragraph regarding DOCUMENT_ROOT] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@558766 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_cgi.html.en b/docs/manual/mod/mod_cgi.html.en index f51f5964aa3..27e5c11d133 100644 --- a/docs/manual/mod/mod_cgi.html.en +++ b/docs/manual/mod/mod_cgi.html.en @@ -33,22 +33,15 @@ -

Any file that has the mime type - application/x-httpd-cgi or handler - cgi-script (Apache 1.1 or later) will be treated +

Any file that has the handler + cgi-script 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 + returned to the client. Files acquire this handler either by having a name containing an extension defined by the - AddType directive, or by being + AddHandler directive, or by being in a ScriptAlias directory.

-

When the server invokes a CGI script, it will add a variable - called DOCUMENT_ROOT to the environment. This - variable will contain the value of the - DocumentRoot configuration - variable.

-

For an introduction to using CGI scripts with Apache, see our tutorial on Dynamic Content With CGI.

@@ -57,6 +50,10 @@ mod_cgid should be used in place of this module. At the user level, the two modules are essentially identical.

+ +

For backward-compatibility, the cgi-script handler will also be activated + for any file with the mime-type application/x-httpd-cgi. The + use of the magic mime-type is deprecated.

Directives