Apache Reference: mod_actions, Script

Script

Action to Trigger an HTTP Request Method
Syntax: Script method A
Example: Script PUT /cgi-bin/upload
Since: Apache 1.1

This directive defines an action, that will activate the CGI script cgi-script when a file is requested using the HTTP method of method (either GET, POST, PUT, or DELETE). The URL and file path of the requested document are delivered to cgi-script via the standard SSI/CGI PATH_IN==FO and PATH_TRANSLATED environment variables. Note that the Script directive defines only default actions. If a CGI script, or some other resource that is capable of handling the requested method internally is called, then that action will be taken. Also note that Script will be called with a method of GET only if query arguments are present (such as, ``foo.html?bar'' for use with HTML ISINDEX-style processing). Otherwise, the request will proceed normally.