[BlueOnyx:04860] Re: vsite resolving to first site

Michael Stauber mstauber at blueonyx.it
Thu Jul 1 16:01:27 -05 2010


Hi Kirk,

>  I have two sites on a box sharing the same IP address as the box itself. 
> I do not have DNS enabled on the box although all the entries for the
> sites are in the primary services via Automatic DNS setting in Site
> Management.  The problem is that trying to hit the second site using
> domain only (no www), it gets redirected to first site.  I have eliminated
> anything external by plugging directly into the box and putting the proper
> entries into the windows/system32/drivers/etc/hosts file.  Any help is
> much appreciated.

It is a DNS issue. When you have multiple sites on the same IP, then Apache 
needs to resolve the DNS in order to be able to redirect your visit to the 
desired page.

If it cannot resolve the domain name, then it will simply point the visit to 
the primary site instead.

Entering the domain name into your Windows host file will not help, as Apache 
on your server still needs to be able to resove the DNS and if the domain you 
want to browse to has no correct DNS entries, then this won't work.

Work around: 

1.) Under "System Settings" / "TCP/IP" enter the IP address of your server as 
DNS server.

2.) Activat the DNS server on your BlueOnyx.

3.) Create DNS records for your Domain based on this guide

http://www.solarspeed.net/otrs/public.pl?Action=PublicFAQ&CategoryID=3&ItemID=16

4.) Configure your Windows network so that it uses the BlueOnyx DNS server for 
all DNS queries.

Then it should work until you get official DNS entries somewhere upsteam.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list