[deployment-guide/comm-rel: 503/727] Updated the ErrorDocument directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:07:11 UTC 2010


commit 15d8fa7278452a8cbaddbd68d5820813e666da8f
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Thu Aug 26 15:02:26 2010 +0200

    Updated the ErrorDocument directive description.

 en-US/The_Apache_HTTP_Server.xml |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index 44a380b..79f894b 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -868,27 +868,24 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>ErrorDocument</option></term>
+          <listitem>
+            <para>
+              The <option>ErrorDocument</option> directive allows you to specify a document or a message to be displayed as a response to a particular error. It takes the following form:
+            </para>
+            <screen>ErrorDocument <replaceable>error-code</replaceable> <replaceable>action</replaceable></screen>
+            <para>
+              The <replaceable>error-code</replaceable> has to be a valid code such as <literal>403</literal> (Forbidden), <literal>404</literal> (Not Found), or <literal>500</literal> (Internal Server Error). The <replaceable>action</replaceable> can either be a URL (both local and external), or a message string enclosed in double quotes (that is, <literal>"</literal>).
+            </para>
+            <example id="example-apache-httpdconf-errordocument">
+              <title>Using the <option>ErrorDocument</option> directive</title>
+              <screen>ErrorDocument 403 "Access Denied"
+ErrorDocument 404 /404-not_found.html</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
-      <formalpara id="s2-apache-errordocument">
-        <title>ErrorDocument</title>
-        <indexterm>
-          <primary><command>ErrorDocument</command></primary>
-          <secondary>Apache configuration directive</secondary>
-        </indexterm>
-        <indexterm>
-          <primary>configuration directives, Apache</primary>
-          <secondary><command>ErrorDocument</command></secondary>
-        </indexterm>
-        <para>
-          The <command>ErrorDocument</command> directive associates an HTTP response code with a message or a URL to be sent back to the client. By default, the Web server outputs a simple and usually cryptic error message when an error occurs. The <command>ErrorDocument</command> directive forces the Web server to instead output a customized message or page.
-        </para>
-      </formalpara>
-      <important>
-        <title>Important</title>
-        <para>
-          To be valid, the message <emphasis>must</emphasis> be enclosed in a pair of double quotes <command>"</command>.
-        </para>
-      </important>
       <formalpara id="s2-apache-errorlog">
         <title>ErrorLog</title>
         <indexterm>


More information about the docs-commits mailing list