The British Caving Association

Any views expressed are not necessarily those of the BCA
It is currently Tue 02 Sep 2014 05:12

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat 28 Feb 2009 12:16 
Offline
User avatar

Joined: Thu 16 Mar 2006 23:45
Posts: 313
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun 01 Mar 2009 10:59 
Offline
Site Admin

Joined: Thu 29 Dec 2005 23:22
Posts: 247
Location: Axbridge, Somerset, UK
Option 2 should be favourite since it allows for a consistent look and feel to your site.

I need to do this for my sites. When I do I'll post the results if it will help others.

Option 3 is very handy for a quick fix.

Note Option 1 will only help IE users, not FireFoxers etc.

_________________
Dave Cooke
BCA Web Services, Hidden Earth Treasurer, National Cave Registry Co-ordinator, CSCC Webmaster


Top
 Profile  
 
 Post subject:
PostPosted: Sun 01 Mar 2009 12:23 
Offline
User avatar

Joined: Thu 16 Mar 2006 23:45
Posts: 313
David Cooke wrote:
Option 2 should be favourite since it allows for a consistent look and feel to your site.

I need to do this for my sites. When I do I'll post the results if it will help others.

What would be useful (I could do it myself but Im lazy) would be a list of which errors need to be supported. There are over 50 error codes but not all (e.g. 302) result in an error document. My guess above, was the four that seemed most obviously to require an error document.
Quote:
Note Option 1 will only help IE users, not FireFoxers etc.

What I was really saying was that people might not read the message closely enough anyway, to realise it was really two errors, and if they did ... does it matter.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group