Commit 9bca2462 authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

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
parent bf71624f
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -69,12 +69,13 @@
      ErrorDocument <3-digit-code> <action>
    </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
+1 −0
Original line number Diff line number Diff line
@@ -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