From 2a463b3cd73c32ee9dcd508248d0194923f435f4 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 29 Mar 2014 21:56:19 +0100 Subject: Imported Upstream version 2.4.9 --- docs/manual/custom-error.html.en | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'docs/manual/custom-error.html.en') diff --git a/docs/manual/custom-error.html.en b/docs/manual/custom-error.html.en index 231a91e1..fcaf5663 100644 --- a/docs/manual/custom-error.html.en +++ b/docs/manual/custom-error.html.en @@ -9,7 +9,7 @@ - @@ -64,20 +64,16 @@ if AllowOverride is set to FileInfo.

-
-ErrorDocument 500 "Sorry, our script crashed. Oh dear"
+
ErrorDocument 500 "Sorry, our script crashed. Oh dear"
ErrorDocument 500 /cgi-bin/crash-recover
ErrorDocument 500 http://error.example.com/server_error.html
ErrorDocument 404 /errors/not_found.html
-ErrorDocument 401 /subscription/how_to_subscribe.html -
+ErrorDocument 401 /subscription/how_to_subscribe.html

The syntax of the ErrorDocument directive is:

-
-      ErrorDocument <3-digit-code> <action>
-    
+
ErrorDocument <3-digit-code> <action>

where the action will be treated as:

@@ -156,12 +152,10 @@ ErrorDocument 401 /subscription/how_to_subscribe.html caused it to be invoked. For instance, a Perl ErrorDocument script might include the following:

-
-...
+       
...
 print  "Content-type: text/html\n"; 
printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
-... -
+...

If the script is dedicated to handling a particular error @@ -186,10 +180,8 @@ printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};

In your server configuration file, you'll see a line such as:

-
-    # Multi-language error messages
- #Include conf/extra/httpd-multilang-errordoc.conf -
+
    # Multi-language error messages
+ #Include conf/extra/httpd-multilang-errordoc.conf

Uncommenting this Include line will enable this @@ -234,7 +226,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/custom-error.html'; } })(window, document); //-->