Whole document tree ![]() Apache HTTP Server Version 1.3Module mod_actionsThis module provides for executing CGI scripts based on media type or request method. Status: Base SummaryThis module has two directives. The Action directive lets you run CGI scripts whenever a file of a certain type is requested. The Script directive lets you run CGI scripts whenever a particular method is used in a request. This makes it much easier to execute scripts that process files. DirectivesAction directiveSyntax: Action action-type
cgi-script This directive adds an action, which will activate
cgi-script when action-type is triggered by the
request. The cgi-script is the URL-path to a resource that
has been configured as a CGI script using Examples: # Requests for files of a particular type: Action image/gif /cgi-bin/images.cgi # Files of a particular file extension AddHandler my-file-type .xyz Action my-file-type /cgi-bin/program.cgi In the first example, requests for files with a MIME content
type of In the second example, requests for files with a file extension of
See also: AddHandler Script directiveSyntax: Script method
cgi-script This directive adds an action, which will activate
cgi-script when a file is requested using the method of
method. The cgi-script is the URL-path to a resource
that has been configured as a CGI script using
Prior to Apache 1.3.10, method can only be one of Note that the Script command defines default actions only.
If a CGI script is called, or some other resource that is
capable of handling the requested method internally, it will do
so. Also note that Script with a method of Examples: # For <ISINDEX>-style searching Script GET /cgi-bin/search # A CGI PUT handler Script PUT /~bob/put.cgi Apache HTTP Server Version 1.3![]() ![]() |