This module runs CGI scripts whenever a file of a certain type or HTTP method (See RFC 1945) is requested. The following config directives are described:
Syntax: Action
mime-type cgi-script
Default: - None -
Module: mod_actions(3)
Action
adds an action, which will activate a
cgi-script
whenever a file of a certain mime-type
is
requested. It propagates the URL and file path of the requested
document using the standard CGI PATH_INFO
and
PATH_TRANSLATED
environment variables.
Examples:
Action text/plain /cgi-bin/log_and_deliver_text Action home-grown/mime-type1 /~bob/do_special_stuff
Syntax: Script
method cgi-script
Default: - None -
Module: mod_actions(3)
Script
adds an action, which will activate a
cgi-script
whenever a file is requested using a certain
HTTP method
. The method
is either GET
or
POST
as defined in RFC 1945. It propagates the URL and
file path of the requested document using the standard CGI
PATH_INFO
and PATH_TRANSLATED
environment
variables.
Examples:
Script GET /cgi-bin/get Script PUT /~bob/put_and_a_little_more
Uses the following EWSAPI interaction data, if available:
{real_name,{Path,AfterPath}}
Exports the following EWSAPI interaction data, if possible:
{new_request_uri,RequestURI}
RequestURI
has been generated.
Uses the following exported EWSAPI functions: