From ef5c47b59e89e1310ad3af1a64991f39845f63a7 Mon Sep 17 00:00:00 2001 From: Vincent Bray Date: Mon, 23 Jul 2007 13:31:19 +0000 Subject: [PATCH] Demote use of AddType for cgi and remove redundant paragraph regarding DOCUMENT_ROOT git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@558718 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_cgi.html.en | 19 ++++++++----------- docs/manual/mod/mod_cgi.xml | 19 ++++++++----------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/docs/manual/mod/mod_cgi.html.en b/docs/manual/mod/mod_cgi.html.en index 2efd182c56f..ef53a99326a 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