[deployment-guide/comm-rel: 468/727] Updated the AddHandler directive description.
Jaromir Hradilek
jhradile at fedoraproject.org
Tue Oct 19 13:04:12 UTC 2010
commit dfaf97e41161db848bb7090294e86b0243698107
Author: Jaromir Hradilek <jhradile at redhat.com>
Date: Tue Aug 24 13:41:42 2010 +0200
Updated the AddHandler directive description.
en-US/The_Apache_HTTP_Server.xml | 43 +++++++++++++++-----------------------
1 files changed, 17 insertions(+), 26 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index ea55ab6..357b0fe 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -266,7 +266,7 @@ httpd (pid 19014) is running...</screen>
</para>
<example id="example-apache-httpdconf-action">
<title>Using the <option>Action</option> directive</title>
- <screen>Action image/png /cgi/process-image.cgi</screen>
+ <screen>Action image/png /cgi-bin/process-image.cgi</screen>
</example>
</listitem>
</varlistentry>
@@ -302,32 +302,23 @@ httpd (pid 19014) is running...</screen>
</example>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>AddHandler</option></term>
+ <listitem>
+ <para>
+ The <option>AddHandler</option> directive allows you to map a file extension to a selected handler. This way, any file with the <filename>.cgi</filename> extension can be set to be treated as a CGI script regardless of the directory it is in. The directive takes the following form:
+ </para>
+ <screen>AddHandler <replaceable>handler-name</replaceable> <replaceable>file-extension</replaceable>...</screen>
+ <para>
+ In addition to CGI scripts, the <option>AddHandler</option> directive is commonly used to process server-parsed HTML and image-map files.
+ </para>
+ <example id="example-apache-httpdconf-addhandler">
+ <title>Using the <option>AddHandler</option> option</title>
+ <screen>AddHandler cgi-script .cgi</screen>
+ </example>
+ </listitem>
+ </varlistentry>
</variablelist>
- <formalpara id="s2-apache-addhandler">
- <title>AddHandler</title>
- <indexterm>
- <primary><command>AddHandler</command></primary>
- <secondary>Apache configuration directive</secondary>
- </indexterm>
- <indexterm>
- <primary>configuration directives, Apache</primary>
- <secondary><command>AddHandler</command></secondary>
- </indexterm>
- <indexterm>
- <primary>CGI scripts</primary>
- <secondary>outside the <command>ScriptAlias</command></secondary>
- </indexterm>
- <para>
- <command>AddHandler</command> maps file extensions to specific handlers. For example, the <command>cgi-script</command> handler can be matched with the extension <filename>.cgi</filename> to automatically treat a file ending with <filename>.cgi</filename> as a CGI script. The following is a sample <command>AddHandler</command> directive for the <filename>.cgi</filename> extension.
- </para>
- </formalpara>
- <screen><command>AddHandler cgi-script .cgi</command></screen>
- <para>
- This directive enables CGIs outside of the <filename>cgi-bin</filename> to function in any directory on the server which has the <command>ExecCGI</command> option within the directories container. Refer to <xref linkend="s2-apache-directory" /> for more information about setting the <command>ExecCGI</command> option for a directory.
- </para>
- <para>
- In addition to CGI scripts, the <command>AddHandler</command> directive is used to process server-parsed HTML and image-map files.
- </para>
<formalpara id="s2-apache-addicon">
<title>AddIcon</title>
<indexterm>
More information about the docs-commits
mailing list