Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm setting up a web site on a new install of RHEL 5.7, and running into a problem getting the website domain to resolve correctly.

The changes I've made to httpd.conf are to uncomment the NameVirtualHost so it's

NameVirtualHost *:80

And uncommented the only VirtualHost entry and changed to read:

<VirtualHost *:80>
    DocumentRoot /var/www/html
    ErrorLog logs/
    CustomLog logs/ common

That's it.

I'm able to ping the server by the domain, but any http requests cause a server timeout error.

Thanks for any help.

share|improve this question
Is Apache running and listening? (lsof -i -P | grep 80) Is there any firewall in front of the device? – Shane Madden Jan 25 '12 at 20:36
It is. I'm able to access it via the IP with no problem. There is a firewall in front, but I am operating from inside the firewall. – evanmcd Jan 25 '12 at 20:49
So an HTTP request to the IP works? Can you verify that the name resolves to the same IP address that you're sending requests to? – Shane Madden Jan 25 '12 at 20:52
Yeah, when I ping the domain I see that the response is coming from the right IP. – evanmcd Jan 25 '12 at 21:48
Ok, so a request to the IP (http://X.X.X.X/) works, but a request to the name, which resolves to that IP, times out? Is the wrong DNS data cached in your OS or browser? If you telnet 80, does it connect? – Shane Madden Jan 25 '12 at 22:00
up vote 0 down vote accepted

OK, so after a long bit of troubleshooting, it seems that the issue was an internal proxy (PAC) file that was blocking access to the domain - nothing to do with the Apache config at all.

Thanks for the help anyway.

share|improve this answer

Your Answer


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.