httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject cvs commit: httpd-2.0/docs/manual/mod mod_actions.html
Date Sun, 11 Nov 2001 02:09:07 GMT
rbowen      01/11/10 18:09:07

  Modified:    docs/manual/mod mod_actions.html
  Log:
  Added examples for Action directive.
  
  Revision  Changes    Path
  1.17      +22 -0     httpd-2.0/docs/manual/mod/mod_actions.html
  
  Index: mod_actions.html
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_actions.html,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- mod_actions.html	2001/09/22 19:36:00	1.16
  +++ mod_actions.html	2001/11/11 02:09:07	1.17
  @@ -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.</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>
  
  
  

Mime
View raw message