From 369db0d390f7a4859810cb2d02214894b6bf786f Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 23 Oct 2011 22:09:34 +0000 Subject: [PATCH] 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 --- docs/manual/custom-error.xml | 9 +++++---- docs/manual/mod/core.xml | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/manual/custom-error.xml b/docs/manual/custom-error.xml index c62ab13247..083928b7e2 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 44c99169dc..b030e6ad0d 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 -- 2.40.0