You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by rb...@apache.org on 2001/11/11 02:54:39 UTC

cvs commit: httpd-docs-1.3/htdocs/manual/mod mod_actions.html

rbowen      01/11/10 17:54:39

  Modified:    htdocs/manual/mod mod_actions.html
  Log:
  Added examples to Action directive.
  
  Revision  Changes    Path
  1.17      +22 -0     httpd-docs-1.3/htdocs/manual/mod/mod_actions.html
  
  Index: mod_actions.html
  ===================================================================
  RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_actions.html,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- mod_actions.html	2001/10/08 01:34:30	1.16
  +++ mod_actions.html	2001/11/11 01:54:38	1.17
  @@ -72,6 +72,28 @@
       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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org