You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by rb...@locus.apache.org on 2000/10/01 04:37:22 UTC
cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_cgi.html
rbowen 00/09/30 19:37:22
Modified: htdocs/manual/mod mod_cgi.html
Log:
Added a brief comment about Options ExecCGI, as suggested in a comment.
Submitted by: Rich Bowen <ri...@cre8tivegroup.com>
Revision Changes Path
1.21 +9 -2 httpd-docs-1.3/htdocs/manual/mod/mod_cgi.html
Index: mod_cgi.html
===================================================================
RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_cgi.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- mod_cgi.html 2000/09/28 22:42:13 1.20
+++ mod_cgi.html 2000/10/01 02:37:21 1.21
@@ -37,7 +37,6 @@
<H2>Summary</H2>
<!-- XXX: Should have references to CGI definition/RFC -->
-<!-- XXX: Should mention Options ExecCGI -->
Any file that has the mime type <CODE>application/x-httpd-cgi</CODE>
or handler <CODE>cgi-script</CODE> (Apache 1.1 or later)
@@ -45,7 +44,15 @@
being returned to the client. Files acquire this type either by
having a name containing an extension defined by the
<A HREF="mod_mime.html#addtype">AddType</A> directive, or by being in
-a <A HREF="mod_alias.html#scriptalias">ScriptAlias</A> directory. <P>
+a <A HREF="mod_alias.html#scriptalias">ScriptAlias</A> directory.
+Files that are not in a
+<A HREF="mod_alias.html#scriptalias">ScriptAlias</A> directory,
+but which are of type <CODE>application/x-httpd-cgi</CODE> by
+virtue of an <CODE>AddType</CODE> directive, will still not be executed
+by the server unless <CODE>Options ExecCGI</CODE> is enabled. See
+the <A HREF="core.html#options"><CODE>Options</CODE></A> directive
+for more details.
+<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