View Single Post
Old 03-16-2006, 03:04 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
running apache on a local network

i have a friend who is running apache on a local network and is having trouble with virtual hosts.

he has the virutal host setup so it works locally, but when you try to connect from another system, it just goes to the apache root.

example:
Code:
<VirtualHost *:80>
  DocumentRoot /home/somedood/site_dir/
  ServerName dood
 </VirtualHost>
when he types http://dood/ locally, it pulls up the site.

now, he goes to another system, adds dood to his hosts file, and then when he browses to http://dood/ , it loads the apache document root, not the virtual host.

what else needs to be configured to get this to work?
sde is offline   Reply With Quote