|
|
Apache ErrorDocument Directive
|
|
|
ErrorDocument directive in apache. Used to redirect or include file based on server error. Important to use to control bad behaviour. Helpful to prevent information gathering of the web server based on error document templates.
ErrorDocument 500 http://foo.example.com/cgi-bin/tester
ErrorDocument 404 /cgi-bin/bad_urls.pl
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today
To read more about the apache ErrorDocument directive, visit Apache's directive documentation.
To read more about the various http error codes, visit w3.org's status code definitions page. |
|