]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
add "ErrorDocument 404 default" description
authorGeoffrey Young <geoff@apache.org>
Mon, 12 Jul 2004 17:08:01 +0000 (17:08 +0000)
committerGeoffrey Young <geoff@apache.org>
Mon, 12 Jul 2004 17:08:01 +0000 (17:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@104255 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index 339d848708996b18c3e06ce334360606ff902c4d..f63e4e02c3b757452451ee135dae8bd3f9dabe67 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
-<!-- $Revision: 1.46.2.36 $ -->
+<!-- $Revision: 1.46.2.37 $ -->
 
 <!--
  Copyright 2002-2004 The Apache Software Foundation
@@ -893,6 +893,21 @@ in case of an error</description>
       ErrorDocument 403 "Sorry can't allow you access today"
     </example>
 
+    <p>Additionally, the special value <code>default</code> can be used
+    to specify Apache's simple hardcoded message.  While not required
+    under normal circumstances, <code>default</code> will restore
+    Apache's simple hardcoded message for configurations that would
+    otherwise inherit an existing <directive>ErrorDocument</directive>.</p>
+
+    <example>
+      ErrorDocument 404 /cgi-bin/bad_urls.pl<br /><br />
+      &lt;Directory /web/docs&gt;<br />
+      <indent>
+        ErrorDocument 404 default<br />
+      </indent>
+      &lt;/Directory&gt;
+    </example>
+
     <p>Note that when you specify an <directive>ErrorDocument</directive>
     that points to a remote URL (ie. anything with a method such as
     <code>http</code> in front of it), Apache will send a redirect to the