From: Vincent Bray Any file that has the mime type
- Any file that has the handler
+ When the server invokes a CGI script, it will add a variable
- called For an introduction to using CGI scripts with Apache, see
our tutorial on Dynamic Content
With CGI.application/x-httpd-cgi
or handler
- cgi-script
(Apache 1.1 or later) will be treated
+ 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.DOCUMENT_ROOT
to the environment. This
- variable will contain the value of the
- DocumentRoot
configuration
- variable.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.
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
-
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
-
For an introduction to using CGI scripts with Apache, see our tutorial on Dynamic Content With CGI.
@@ -57,6 +50,10 @@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.