Skip to content

Commit 9bca246

Browse files
author
Stefan Fritsch
committed
Clarify how ErrorDocument interprets argument
PR: 42430 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1187986 13f79535-47bb-0310-9956-ffa450edef68
1 parent bf71624 commit 9bca246

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/manual/custom-error.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@
6969
ErrorDocument <3-digit-code> <action>
7070
</example>
7171

72-
<p>where the action can be one of:</p>
72+
<p>where the action will be treated as:</p>
7373

7474
<ol>
75-
<li>Text to be displayed. Wrap the text with quotes (").</li>
76-
<li>A local URL to redirect to.</li>
77-
<li>An external URL to redirect to.</li>
75+
<li>A local URL to redirect to (if the action begins with a "/").</li>
76+
<li>An external URL to redirect to (if the action is a valid URL).</li>
77+
<li>Text to be displayed (if none of the above). The text must be
78+
wrapped in quotes (") if it consists of more than one word.</li>
7879
</ol>
7980

8081
<p>When redirecting to a local URL, additional environment variables

docs/manual/mod/core.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,7 @@ in case of an error</description>
11651165
ErrorDocument 404 /cgi-bin/bad_urls.pl<br />
11661166
ErrorDocument 401 /subscription_info.html<br />
11671167
ErrorDocument 403 "Sorry can't allow you access today"
1168+
ErrorDocument 403 Forbidden!
11681169
</example>
11691170

11701171
<p>Additionally, the special value <code>default</code> can be used

0 commit comments

Comments
 (0)