Apache Module mod_actions
Requests for files of a particular MIME content 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
All GET requests go here Script GET /cgi-bin/search
A CGI PUT handler Script PUT /~bob/put.cgi
This module has two directives. The
directive lets you run CGI scripts whenever a file of a certain ActionMIME content type is requested. The
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.Script
modifier and handler passing were introduced in Apache 2.1This 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 designated as a CGI script using
. The AddHandleraction-type can be either a handler or a MIME content type. It sends the URL and file path of the requested document using the standard CGI PATH_INFO
environment variables. The handler used for the particular request is passed using the REDIRECT_HANDLER
will be handled by the specified cgi script /cgi-bin/images.cgi
modifier turns off the check whether the requested file really exists. This is useful, for example, if you want to use the Action
directive in virtual locations.
. The URL and file path of the requested document is sent using the standard CGI AddHandlerPATH_INFO
have two entirely different effects. 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
will only be called if there are query arguments present (e.g., foo.html?hi). Otherwise, the request will proceed normally.
Modules | Directives | FAQ | Glossary | Sitemap
Apache HTTP Server Version 2.4
Modules
Modules | Directives | FAQ | Glossary | Sitemap
Apache Module mod_actions
Available Languages: de | en | fr | ja | ko
de
Available Languages: de | en | fr | ja | ko
Apache License, Version 2.0
Copyright 2014 The Apache Software Foundation.Licensed under the Apache License, Version 2.0.