mod_actions.xml revision a4031657b4020b74639885763e58576400c65c3d
0a146bb31945dd13e6f7ad35818f6842ec91ff53nd<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
0a146bb31945dd13e6f7ad35818f6842ec91ff53nd<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<description>This module provides for executing CGI scripts based on
5a58787efeb02a1c3f06569d019ad81fd2efa06endmedia type or request method.</description>
5a58787efeb02a1c3f06569d019ad81fd2efa06end module="mod_actions">Action</directive> directive lets you run CGI
5a58787efeb02a1c3f06569d019ad81fd2efa06end scripts whenever a file of a certain type is requested. The
4b5981e276e93df97c34e4da05ca5cf8bbd937dand <directive module="mod_actions">Script</directive> directive lets
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd you run CGI scripts whenever a particular method is used in a
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd request. This makes it much easier to execute scripts that process
f3ec420152ca921e4c1ce77782f51b53f659018dnd files.</p>
0a146bb31945dd13e6f7ad35818f6842ec91ff53nd<seealso><a href="/howto/cgi.html">Dynamic Content with CGI</a></seealso>
0a146bb31945dd13e6f7ad35818f6842ec91ff53nd<seealso><a href="/handler.html">Apache's Handler Use</a></seealso>
bcb3a46ccb6553019068f7bb2a7ac8548a3f72cfslive<directivesynopsis>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<description>Activates a CGI script for a particular handler or
5a58787efeb02a1c3f06569d019ad81fd2efa06endcontent-type</description>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<syntax>Action <var>action-type</var> <var>cgi-script</var> [virtual]</syntax>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<contextlist>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<context>server config</context><context>virtual host</context>
5a58787efeb02a1c3f06569d019ad81fd2efa06end</contextlist>
bcb3a46ccb6553019068f7bb2a7ac8548a3f72cfslive<compatibility>The <code>virtual</code> modifier was introduced in Apache
bcb3a46ccb6553019068f7bb2a7ac8548a3f72cfslive2.1</compatibility>
3a5c8a7c39f03520463a70cf3f90091dc3a1eb32nd <p>This directive adds an action, which will activate
bcb3a46ccb6553019068f7bb2a7ac8548a3f72cfslive <var>cgi-script</var> when <var>action-type</var> is triggered by the
5a58787efeb02a1c3f06569d019ad81fd2efa06end request. The <var>cgi-script</var> is the URL-path to a resource
5a58787efeb02a1c3f06569d019ad81fd2efa06end that has been designated as a CGI script using <directive
0a146bb31945dd13e6f7ad35818f6842ec91ff53nd href="/handler.html">handler</a> or a MIME content type. It
5a58787efeb02a1c3f06569d019ad81fd2efa06end sends the URL and file path of the requested document using the
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd standard CGI PATH_INFO and PATH_TRANSLATED environment
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd variables.</p>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd # Requests for files of a particular type:<br />
5a58787efeb02a1c3f06569d019ad81fd2efa06end # Files of a particular file extension<br />