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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Hosts, driving me nuts

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can someone pls help me.
Bascially I'm running apache2 on solaris 8.
I have one ip address, with two different domina names coming to it.
If created a /usr/ Within that directory I have created two further dir for each of the domains.

When i type in the first domain, the correct webpage loads up.
However when i type the second domain the first webpage comeup instead.

How do I solve this problem?

<VirtualHost 192.168.123.100>
DocumentRoot /usr/ServerName hochborntest
</VirtualHost>

<VirtualHost 192.168.123.100>
DocumentRoot /usr/ServerName sigmatest
</VirtualHost>

thx
 
Try adding the ServerAlias directive into the Alias block?
and tidy up the server names

Worth a try ?

<VirtualHost 192.168.123.100>
DocumentRoot /usr/ServerName ServerAlias hochborntest.com
</VirtualHost>

<VirtualHost 192.168.123.100>
DocumentRoot /usr/ServerName ServerAlias sigmatest.co.uk <---- this is what it looks for
</VirtualHost>
 
Hi,

Why don´t you change the order of the VirtualHosts in the file?. It should help us to debug the problem.
Another intesresting test could be to make the second virtual server listening in another port and see if it works(Rememeber to add the Listen directive in the file for the new port)
Could you post here the error and the access files?
Which are the entrys in the DNS for the web-resource?
IP
or
hochborntest.com IP
or
hochborntest IP

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top