Summary
The module mod_actions provides for executing CGI scripts based on media type or request method.
Directives
Module: mod_actions | |
Syntax: Action action-type cgi-script | |
Default: none | |
Context: server config, virtual host, directory, .htaccess | |
Override: FileInfo | |
Origin: Apache | |
Example: Action application/x-www-form-urlencoded /cgi-bin/file.pgm |
The Action directive adds an action, which will activate CGI script when action-type is triggered by the request.
Module: mod_actions | |
Syntax: Script method CGI-script | |
Default: none | |
Context: server config, virtual host, directory | |
Override: none | |
Origin: Apache | |
Example: Script PUT /cgi-bin/bob.pgm |
The Script directive adds an action, which will activate CGI-script when a file is requested using the method of method. It sends the URL and file path of the requested document using the standard CGI PATH_INFO and PATH_TRANSLATED environment variables. Method names are case-sensitive, so Script PUT and Script put have two entirely different effects.