From: Stefan Fritsch Date: Sun, 23 Oct 2011 22:09:34 +0000 (+0000) Subject: Clarify how ErrorDocument interprets argument X-Git-Tag: 2.3.15~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=369db0d390f7a4859810cb2d02214894b6bf786f;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/custom-error.xml b/docs/manual/custom-error.xml index c62ab13247f..083928b7e2b 100644 --- a/docs/manual/custom-error.xml +++ b/docs/manual/custom-error.xml @@ -69,12 +69,13 @@ ErrorDocument <3-digit-code> <action> -

where the action can be one of:

+

where the action will be treated as:

    -
  1. Text to be displayed. Wrap the text with quotes (").
  2. -
  3. A local URL to redirect to.
  4. -
  5. An external URL to redirect to.
  6. +
  7. A local URL to redirect to (if the action begins with a "/").
  8. +
  9. An external URL to redirect to (if the action is a valid URL).
  10. +
  11. Text to be displayed (if none of the above). The text must be + wrapped in quotes (") if it consists of more than one word.

When redirecting to a local URL, additional environment variables diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 44c99169dc3..b030e6ad0d6 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -1165,6 +1165,7 @@ in case of an error ErrorDocument 404 /cgi-bin/bad_urls.pl
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today" + ErrorDocument 403 Forbidden!

Additionally, the special value default can be used