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

Jimmy Gross grossj at constantino.net
Fri Jul 2 08:33:48 -05 2010


You have to have an A record (Host record) setup in your primary and
secondary DNS servers for each site:

www.site1.com    A   XXX.XXX.XXX.XXX
site1.com            A  XXX.XXX.XXX.XXX

www.site2.com    A  XXX.XXX.XXX.XXX
site2.com            A  XXX.XXX.XXX.XXX

Where XXX.XXX.XXX.XXX is your IP address.

You must also have a domain alias set up for each site under Site
Management->Services->Web for each domain:
1) site1.com = alias of www.site1.com and site1.com
2) site2.com = alias of www.site2.com and site2.com

Unless you set up an A record in your primary and secondary DNS servers for
each domain it will not resolve.

jimmy
  -----Original Message-----
  From: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it]On
Behalf Of Kirk Gildroy
  Sent: Friday, July 02, 2010 8:15 AM
  To: blueonyx at blueonyx.it
  Subject: [BlueOnyx:04877] Re: vsite resolving to first site


  Both sites are setup exactly the same with the hostname being www and
domain being their respective domain names.  Each has an alias for just the
domain name under Site Management->Services->Web.  I am going to try and add
another alias on the second site and see if it resolves as that seems to be
the problem...not processing aliases.



----------------------------------------------------------------------------
--
  From: david at goulburn.net.au
  To: blueonyx at blueonyx.it
  Date: Fri, 2 Jul 2010 08:22:20 +1000
  Subject: [BlueOnyx:04867] Re: vsite resolving to first site


  From: Kirk Gildroy
  Sent: Friday, July 02, 2010 7:58 AM
  To: blueonyx at blueonyx.it
  Subject: [BlueOnyx:04862] Re: vsite resolving to first site


  I appreciate the prompt reply.  I do have DNS entries with Network
Solutions for both www.mydomainname.org and mydomainname.org for outside
resolution and I also have them entered on my Win2k3 inside DNS servers for
inside resolution.  Hit the FQDN of www.mydomainname.org and I hit the
proper site so Apache must be resolving properly at that point but why not
for mydomainname.org?

  > From: mstauber at blueonyx.it
  > To: blueonyx at blueonyx.it
  > Date: Thu, 1 Jul 2010 23:01:27 +0200
  > Subject: [BlueOnyx:04860] Re: vsite resolving to first site
  >
  > 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&ItemI
D=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


  You must include mydomainname.org as a web server alias for
www.mydomainname.org
  Do this in Site Management - Services - Web - Web server aliases

  If you want other.mydomainname.org to resolve to www.mydomainname.org then
include that too, and add an A record in DNS for it with the same IP
address.


----------------------------------------------------------------------------
--
  The New Busy is not the too busy. Combine all your e-mail accounts with
Hotmail. Get busy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20100702/5b2185a2/attachment.html>


More information about the Blueonyx mailing list