From ccdd6025f2fe7d3ce7579263b75c00483653db8b Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sun, 11 Nov 2001 02:09:07 +0000 Subject: [PATCH] Added examples for Action directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91846 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_actions.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/manual/mod/mod_actions.html b/docs/manual/mod/mod_actions.html index 0749de22cf..edeeb4653b 100644 --- a/docs/manual/mod/mod_actions.html +++ b/docs/manual/mod/mod_actions.html @@ -66,6 +66,28 @@ sends the URL and file path of the requested document using the standard CGI PATH_INFO and PATH_TRANSLATED environment variables.

+ +

Examples:

+
+    # Requests for files of a particular 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 + type of image/gif will instead be handled by the + specified cgi script /cgi-bin/images.cgi.

+ +

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

+ +

See also: AddHandler

+

Script directive

-- 2.40.0