Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

name based virtual hosts

Status
Not open for further replies.

chumley

Technical User
Apr 19, 2001
3
US
I tried to set up name based virtual hosts with different document roots as described in the apache docs. (see below). Only the first document tree is accessible from both server names. Can anyone tell me what needs to be done or corrected to get this to work?

NameVirtualHost 1.2.3.4

<VirtualHost 1.2.3.4>
DocumentRoot /path/maindocs
ServerName </Virtual Host>

<VirtualHost 1.2.3.4>
DocumentRoot /path/site2docs
SeveName site2.hostname.com
</VirtualHost>
 
This seems to be a very common problem. Do you have a firewall? Are you using internal ip addressing?
Just set that ip to the internal ip address of the machine, and make sure to set up NameVirtualHost as the same IP.

ItNinja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top