From: Rich Bowen Date: Thu, 4 Mar 2010 14:22:31 +0000 (+0000) Subject: Small rearrangement, placing the explanatory text with the example it X-Git-Tag: 2.3.6~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f191370bbe64cf666dd4064a20f5989926f5e8d;p=apache Small rearrangement, placing the explanatory text with the example it explains. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918997 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_actions.html.en b/docs/manual/mod/mod_actions.html.en index faa652c866..415415270a 100644 --- a/docs/manual/mod/mod_actions.html.en +++ b/docs/manual/mod/mod_actions.html.en @@ -75,20 +75,23 @@ introduced in Apache 2.1 environment variables. The handler used for the particular request is passed using the REDIRECT_HANDLER variable.

-

Examples

+

Example: MIME type

# 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

-

In the first example, requests for files with a MIME content +

In this example, requests for files with a MIME content type of image/gif will be handled by the specified cgi script /cgi-bin/images.cgi.

-

In the second example, requests for files with a file extension of +

Example: File extension

+ # Files of a particular file extension
+ AddHandler my-file-type .xyz
+ Action my-file-type /cgi-bin/program.cgi
+

+ +

In this example, requests for files with a file extension of .xyz are handled by the specified cgi script /cgi-bin/program.cgi.

diff --git a/docs/manual/mod/mod_actions.xml b/docs/manual/mod/mod_actions.xml index 5365322855..6bc130667b 100644 --- a/docs/manual/mod/mod_actions.xml +++ b/docs/manual/mod/mod_actions.xml @@ -73,20 +73,23 @@ introduced in Apache 2.1 environment variables. The handler used for the particular request is passed using the REDIRECT_HANDLER variable.

- Examples + Example: MIME type # 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
-

In the first example, requests for files with a MIME content +

In this example, requests for files with a MIME content type of image/gif will be handled by the specified cgi script /cgi-bin/images.cgi.

-

In the second example, requests for files with a file extension of + Example: File extension + # Files of a particular file extension
+ AddHandler my-file-type .xyz
+ Action my-file-type /cgi-bin/program.cgi
+
+ +

In this example, requests for files with a file extension of .xyz are handled by the specified cgi script /cgi-bin/program.cgi.