Clarify how ErrorDocument interprets argument
authorStefan Fritsch <sf@apache.org>
Sun, 23 Oct 2011 22:09:34 +0000 (22:09 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 23 Oct 2011 22:09:34 +0000 (22:09 +0000)
PR: 42430

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1187986 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/custom-error.xml
docs/manual/mod/core.xml

index c62ab13247f496cf4d3d000223edac2c7b509990..083928b7e2b4c3143e66a3c09d0860db3f856697 100644 (file)
       ErrorDocument &lt;3-digit-code&gt; &lt;action&gt;
     </example>
 
-    <p>where the action can be one of:</p>
+    <p>where the action will be treated as:</p>
 
     <ol>
-      <li>Text to be displayed. Wrap the text with quotes (").</li>
-      <li>A local URL to redirect to.</li>
-      <li>An external URL to redirect to.</li>
+      <li>A local URL to redirect to (if the action begins with a "/").</li>
+      <li>An external URL to redirect to (if the action is a valid URL).</li>
+      <li>Text to be displayed (if none of the above). The text must be
+          wrapped in quotes (") if it consists of more than one word.</li>
     </ol>
 
     <p>When redirecting to a local URL, additional environment variables
index 44c99169dc379feb94fb089f1a708ce06c2e8024..b030e6ad0d605da59a6e0320c6909fecd49c3c42 100644 (file)
@@ -1165,6 +1165,7 @@ in case of an error</description>
       ErrorDocument 404 /cgi-bin/bad_urls.pl<br />
       ErrorDocument 401 /subscription_info.html<br />
       ErrorDocument 403 "Sorry can't allow you access today"
+      ErrorDocument 403 Forbidden!
     </example>
 
     <p>Additionally, the special value <code>default</code> can be used