Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Feb 25, 2008 4:21 pm 
Offline
Senior Newbie

Joined: Wed Dec 12, 2007 11:34 am
Posts: 10
I have a number of custom documents for 404, 403, etc, but it turns out for some reason, apache can't find the 500 error document and it affects all my vhosts. I was setting up some error docs today, and when it came to testing the if the 500 error doc was working, it gave me the standard apache internal server error message followed by:

Quote:
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



I had my syntax checked by people in freenode/#apache on irc, they said its fine, and they can't see what the problem is. All the error docs have the same permissions and are owned by the same user.

This is what my typical vhost entry looks like:

Code:
<VirtualHost 69.93.127.152:80>
    ServerName domain.com
    ServerAlias www.domain.com
    DocumentRoot /wwwroot/htdocs/domain
    ErrorLog "logs/domain-error_log"
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" com$
    CustomLog logs/domain-access_log "combined"

   ErrorDocument 404 /404.html
   ErrorDocument 403 /403.html
   ErrorDocument 401 /401.html
   ErrorDocument 500 /500.html


</VirtualHost>


I can't work out why the 500 doc doesn't work while all the others do, I can access it fine if I go directly to the doc via my web browser. :?

I'm using Centos 5 with Apache/2.2.8.


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 7:12 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
How are you inducing the error 500? This might be relevant: http://www.webmasterworld.com/apache/3205630.htm

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 7:20 pm 
Offline
Senior Newbie

Joined: Wed Dec 12, 2007 11:34 am
Posts: 10
The problem is resolved, the problem was it was trying to access the document in a folder that had a bad rewrite directive (that I was using for testing) and it meant the server couldn't get to the 500.html file. :shock:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group