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'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>
    ServerAdmin myemail@co.com
    DocumentRoot /var/www/html
    ServerName mydomain.com
    ErrorLog logs/mydomain.com-error_log
    CustomLog logs/mydomain.com-access_log common
</VirtualHost>

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 example.com 80, does it connect? –  Shane Madden Jan 25 '12 at 22:00
show 1 more comment

1 Answer 1

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
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.