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 have made a virtual host on a machine and reloaded apache, but I can't seems to be able to access it from another computer on the same network. (It does work when I set the ip of the server and in the host file of the other machine)

to make the virtualhost I have edited /etc/httpd/conf/httpd.conf and added:

    DocumentRoot /home/sites/mysite
    ServerName mysite.test.corp
    ErrorLog logs/mysite.test.corp-error_log
    CustomLog logs/mysite.test.corp-access_log common
    <Directory /home/sites/mysite>
        AllowOverride All
share|improve this question
up vote 1 down vote accepted

If it works when you set the IP in your hosts file, then there is a DNS problem somewhere on the local network. Did you create the record "mysite.test.corp." on your local authoratative DNS servers?

share|improve this answer
To add to that: I have a router that forwards port 80 to my public web server; I publish the external IP address of the router in my external DNS. My router can't handle internal traffic attempting to access the external address (it doesn't port forward correctly). So I had to set up internal DNS to mirror (but lie about) the external DNS. – Roger Lipscombe Oct 7 '09 at 14:38

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.