You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by no...@apache.org on 2007/07/23 17:05:01 UTC

svn commit: r558766 - in /httpd/httpd/branches/2.2.x/docs/manual/mod: mod_cgi.html.en mod_cgi.xml

Author: noodl
Date: Mon Jul 23 08:05:00 2007
New Revision: 558766

URL: http://svn.apache.org/viewvc?view=rev&rev=558766
Log:
Backport r558718 to 2.2 [Demote use of AddType for cgi and remove redundant paragraph regarding DOCUMENT_ROOT]

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.html.en
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.xml

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.html.en?view=diff&rev=558766&r1=558765&r2=558766
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.html.en Mon Jul 23 08:05:00 2007
@@ -33,22 +33,15 @@
 
     
 
-    <p>Any file that has the mime type
-    <code>application/x-httpd-cgi</code> or handler
-    <code>cgi-script</code> (Apache 1.1 or later) will be treated
+    <p>Any file that has the handler
+    <code>cgi-script</code> 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
-    <code class="directive"><a href="../mod/mod_mime.html#addtype">AddType</a></code> directive, or by being
+    <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code> directive, or by being
     in a <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
     directory.</p>
 
-    <p>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 value of the
-    <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code> configuration
-    variable.</p>
-
     <p>For an introduction to using CGI scripts with Apache, see
     our tutorial on <a href="../howto/cgi.html">Dynamic Content
     With CGI</a>.</p>
@@ -57,6 +50,10 @@
     <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> should be used in place of
     this module. At the user level, the two modules are essentially
     identical.</p>
+    
+    <p>For backward-compatibility, the cgi-script handler will also be activated
+    for any file with the mime-type <code>application/x-httpd-cgi</code>. The
+    use of the magic mime-type is deprecated.</p>
 </div>
 <div id="quickview"><h3 class="directives">Directives</h3>
 <ul id="toc">

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.xml?view=diff&rev=558766&r1=558765&r2=558766
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_cgi.xml Mon Jul 23 08:05:00 2007
@@ -33,22 +33,15 @@
           is the link to howto/cgi not sufficient? -nd
     -->
 
-    <p>Any file that has the mime type
-    <code>application/x-httpd-cgi</code> or handler
-    <code>cgi-script</code> (Apache 1.1 or later) will be treated
+    <p>Any file that has the handler
+    <code>cgi-script</code> 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
-    <directive module="mod_mime">AddType</directive> directive, or by being
+    <directive module="mod_mime">AddHandler</directive> directive, or by being
     in a <directive module="mod_alias">ScriptAlias</directive>
     directory.</p>
 
-    <p>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 value of the
-    <directive module="core">DocumentRoot</directive> configuration
-    variable.</p>
-
     <p>For an introduction to using CGI scripts with Apache, see
     our tutorial on <a href="../howto/cgi.html">Dynamic Content
     With CGI</a>.</p>
@@ -57,6 +50,10 @@
     <module>mod_cgid</module> should be used in place of
     this module. At the user level, the two modules are essentially
     identical.</p>
+    
+    <p>For backward-compatibility, the cgi-script handler will also be activated
+    for any file with the mime-type <code>application/x-httpd-cgi</code>. The
+    use of the magic mime-type is deprecated.</p>
 </summary>
 
 <seealso><directive module="core">AcceptPathInfo</directive></seealso>