]> granicus.if.org Git - apache/commitdiff
add "ErrorDocument 404 default" description
authorGeoffrey Young <geoff@apache.org>
Mon, 12 Apr 2004 17:52:19 +0000 (17:52 +0000)
committerGeoffrey Young <geoff@apache.org>
Mon, 12 Apr 2004 17:52:19 +0000 (17:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103363 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index 46fb551537420a211cb3b640fcd271c09e4370a6..eab7d2c36e756918839bb70d84c83dda1e03ad8d 100644 (file)
@@ -890,6 +890,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