Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having a problem where my site's 404 request are ending up as 500 errors on the server. When I use wget to retrieve the site, I get this

Resolving gx5.co.uk... 127.0.0.1, 87.106.9.224 Connecting to gx5.co.uk|127.0.0.1|:80... failed: Connection refused. Connecting to gx5.co.uk|87.106.9.224|:80... connected. HTTP request sent, awaiting response... 500 Internal Server Error 2013-01-07 03:46:35 ERROR 500: Internal Server Error.

You can see the problem for yourself 500 error

Any ideas? I have been up all night trying to figure it out. Only noticed because Webmaster sent me e-mails about errors.

One more thing, all other sites on the server are having no problems with 404 routing. I also have nginx running on the server.

share|improve this question
    
Di you see entries in the access and error log from Apache that relates to this? –  SvW Jan 7 '13 at 3:47
    
Looking at the error from the client side won't tell you much; you need to look in the server logs to investigate why it decides 500 is an appropriate response. –  fukawi2 Jan 7 '13 at 3:49
    
That is the wierd thing. The errors are not logging in the sites error log. I am looking at the main apache error logs and it is not logging there either. –  kaiten65 Jan 7 '13 at 4:13
add comment

1 Answer

What is your server side language?

Is your 404 page a simple html or are you having lot of code.

I have seen this error in php when there are version issues. Eg: The between 5.2.* and 5.3.9 in passing values by reference, what was working in 5.2 was not throwing error in 5.3.9.

Try replacing your 404 page with a simple html page. If their is no problem then you know where to look for.

share|improve this answer
    
My website is not a simple website. It uses mod_rewrite to change urls. I disabled .htaccess and tried the page again. It redirected to the sites homepage. I am using php 5.3.3. Other websites on the server with very similar configuration seems to be working fine –  kaiten65 Jan 7 '13 at 4:25
    
As per your suggestion rAm I checked it by taking away .htaccess this time, errors worked properly. It might be a problem with mod_rewrite on the site. I am not quite sure –  kaiten65 Jan 7 '13 at 10:42
    
Good to know you could isolate the issue, what is there in .htaccess? Is it ok to post it? –  rAm Jan 7 '13 at 11:27
    
Sorry for the late reply, yes I could but it may have been changed since the last time I posted the question. –  kaiten65 Mar 24 '13 at 2:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.