ErrorDocument "error" on new server
Posted: Sat 28 Feb 2009 12:16
It seems that the new server has been configured to require customers to provide their own error documents (that is, the pages that are displayed when the server encounters an error). If users do not do this then a server error will cause the server to display an error message saying that it cannot find the error message it needs to display
for example: http://hidden-earth.org.uk/this-file-do ... exist.html results in the server supplying a 404 'not found' message, as it should, but it also includes the line...
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is because the server has been told to look for the document hidden-earth.org.uk/404.shtml which, of course, does not exist.
SOLUTIONS
1) Ignore. Who is going to notice? Apart from me. Especially since, if the error document is small, MSIE tends to ignore it anyway, substituting its own "friendly" message instead. See http://support.microsoft.com/default.as ... us;Q294807
2) Add your own error-handling pages, either "manually" or using the "wizard" you will find by clicking the icon near the bottom of your control panel.
3) Add directives in a .htaccess file to stop the server looking for these non-existent pages. You could try
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
which overs the most likely errors. I do not know enough about Apache to know if there's a more universal server directive that can be used
for example: http://hidden-earth.org.uk/this-file-do ... exist.html results in the server supplying a 404 'not found' message, as it should, but it also includes the line...
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is because the server has been told to look for the document hidden-earth.org.uk/404.shtml which, of course, does not exist.
SOLUTIONS
1) Ignore. Who is going to notice? Apart from me. Especially since, if the error document is small, MSIE tends to ignore it anyway, substituting its own "friendly" message instead. See http://support.microsoft.com/default.as ... us;Q294807
2) Add your own error-handling pages, either "manually" or using the "wizard" you will find by clicking the icon near the bottom of your control panel.
3) Add directives in a .htaccess file to stop the server looking for these non-existent pages. You could try
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
which overs the most likely errors. I do not know enough about Apache to know if there's a more universal server directive that can be used