From 2a463b3cd73c32ee9dcd508248d0194923f435f4 Mon Sep 17 00:00:00 2001
From: Stefan Fritsch AllowOverride
is set to
FileInfo.
-ErrorDocument 500 "Sorry, our script crashed. Oh dear"
+ErrorDocument 500 "Sorry, our script crashed. Oh dear"+ErrorDocument 401 /subscription/how_to_subscribe.html
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 -
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);
//-->