mod_actions(3erl)

mod_actions3erl

Filetype/method-based script execution.

Overview

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:

*

Action

*

Script

DIRECTIVE: Action

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

DIRECTIVE: Script

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 POST /~bob/put_and_a_little_more

Ewsapi module interaction

Uses the following EWSAPI interaction data, if available:

{real_name, {Path, AfterPath}}:

as defined in mod_alias(3).

Exports the following EWSAPI interaction data, if possible:

{new_request_uri, RequestURI}:

An alternative RequestURI has been generated.

Uses the following exported EWSAPI functions:

*

mod_alias:path/3

Author

Joakim Grebenö  - [email protected]

From erlang-manpages 1:10.b.1a-1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.