]> granicus.if.org Git - apache/commitdiff
Added examples for Action directive.
authorRich Bowen <rbowen@apache.org>
Sun, 11 Nov 2001 02:09:07 +0000 (02:09 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 11 Nov 2001 02:09:07 +0000 (02:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91846 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_actions.html

index 0749de22cf59743f4e8f57fce468814a1e8757de..edeeb4653baed0559afff321c6c23171bc419a03 100644 (file)
     sends the URL and file path of the requested document using the
     standard CGI PATH_INFO and PATH_TRANSLATED environment
     variables.</p>
+
+    <p>Examples:</p>
+    <pre>
+    # 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
+    </pre>
+
+    <p>In the first example, requests for files with a MIME content
+    type of <code>image/gif</code> will instead be handled by the
+    specified cgi script <code>/cgi-bin/images.cgi</code>.</p>
+
+    <p>In the second example, requests for files with a file extension of
+    <code>.xyz</code> are handled instead by the specified cgi script 
+    <code>/cgi-bin/program.cgi</code>.</p>
+
+    <p><strong>See also</strong>: <a 
+        href="mod_mime.html#addhandler">AddHandler</a></p>
+
     <hr />
 
     <h2><a id="script" name="script">Script directive</a></h2>