diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:42:13 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2011-12-27 19:42:13 +0100 |
commit | 1acac7a6b494db24f8f58e44dab7657b6de68742 (patch) | |
tree | 9a0dd3753dd6fb8c859ed299ee9794b88173c420 /docs/manual/mod/mod_cgi.html.en | |
parent | 80ba9f34b69a273d82f2f46d7fe231e30e127028 (diff) | |
download | apache2-1acac7a6b494db24f8f58e44dab7657b6de68742.tar.gz |
Upstream tarball 2.2.6upstream/2.2.6
Diffstat (limited to 'docs/manual/mod/mod_cgi.html.en')
-rw-r--r-- | docs/manual/mod/mod_cgi.html.en | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/docs/manual/mod/mod_cgi.html.en b/docs/manual/mod/mod_cgi.html.en index f51f5964..a2696776 100644 --- a/docs/manual/mod/mod_cgi.html.en +++ b/docs/manual/mod/mod_cgi.html.en @@ -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"> @@ -242,6 +239,6 @@ in the scriptlog</td></tr> <a href="../ja/mod/mod_cgi.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_cgi.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> </div><div id="footer"> -<p class="apache">Copyright 2006 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2007 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div> </body></html>
\ No newline at end of file |