[deployment-guide/comm-rel: 465/727] Updated the Action directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:03:57 UTC 2010


commit ba1045847d2fc141ee9b50bdbf83f6a143fa3661
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Aug 24 12:05:03 2010 +0200

    Updated the Action directive description.

 en-US/The_Apache_HTTP_Server.xml |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index cd0fbc6..4cc3e10 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -228,20 +228,6 @@ httpd (pid 19014) is running...</screen>
       <para>
         For more information about <filename>mod_ssl</filename> directives, refer to the documentation online at <ulink url="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html" />.
       </para>
-      <formalpara id="s2-apache-action">
-        <title>Action</title>
-        <indexterm>
-          <primary><command>Action</command></primary>
-          <secondary>Apache configuration directive</secondary>
-        </indexterm>
-        <indexterm>
-          <primary>configuration directives, Apache</primary>
-          <secondary><command>Action</command></secondary>
-        </indexterm>
-        <para>
-          <command>Action</command> specifies a MIME content type and CGI script pair, so that when a file of that media type is requested, a particular CGI script is executed.
-        </para>
-      </formalpara>
       <variablelist>
         <varlistentry>
           <term><option>AccessFileName</option></term>
@@ -268,6 +254,22 @@ httpd (pid 19014) is running...</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>Action</option></term>
+          <listitem>
+            <para>
+              The <option>Action</option> directive allows you to specify a CGI script that is to be executed when a certain media type is requested. It takes the following form:
+            </para>
+            <screen>Action <replaceable>media-type</replaceable> <replaceable>script-name</replaceable></screen>
+            <para>
+              The <replaceable>media-type</replaceable> option has to be a valid MIME type such as <literal>text/html</literal>, <literal>image/png</literal>, <literal>application/pdf</literal> etc.
+            </para>
+            <example id="example-apache-httpdconf-action">
+              <title>Using the <option>Action</option> directive</title>
+              <screen>Action image/png /cgi/process-image.cgi</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
       <formalpara id="s2-apache-adddescription">
         <title>AddDescription</title>


More information about the docs-commits mailing list