From: Rich Bowen
Date: Sun, 11 Nov 2001 02:09:07 +0000 (+0000)
Subject: Added examples for Action directive.
X-Git-Tag: 2.0.29~193
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccdd6025f2fe7d3ce7579263b75c00483653db8b;p=apache
Added examples for Action directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91846 13f79535-47bb-0310-9956-ffa450edef68
---
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
+