You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ge...@apache.org on 2004/07/12 19:08:01 UTC
cvs commit: httpd-2.0/docs/manual/mod core.xml
geoff 2004/07/12 10:08:01
Modified: docs/manual/mod Tag: APACHE_2_0_BRANCH core.xml
Log:
add "ErrorDocument 404 default" description
Revision Changes Path
No revision
No revision
1.46.2.37 +16 -1 httpd-2.0/docs/manual/mod/core.xml
Index: core.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/mod/core.xml,v
retrieving revision 1.46.2.36
retrieving revision 1.46.2.37
diff -u -r1.46.2.36 -r1.46.2.37
--- core.xml 5 May 2004 03:29:05 -0000 1.46.2.36
+++ core.xml 12 Jul 2004 17:08:01 -0000 1.46.2.37
@@ -893,6 +893,21 @@
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 />
+ <Directory /web/docs><br />
+ <indent>
+ ErrorDocument 404 default<br />
+ </indent>
+ </Directory>
+ </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