Date: Thu, 5 Oct 2000 13:22:16 -0400 (EDT) From: <tom@mybizz.net> To: James Housley <jim@thehousleys.net> Cc: Nate Johnston <nmj3e@alumni.virginia.edu>, freebsd-isp@FreeBSD.ORG Subject: Re: Apache vhosts question Message-ID: <Pine.BSF.4.21.0010051318510.8680-100000@shell1.thebiz.net> In-Reply-To: <39DCB05F.8B6AC2F@thehousleys.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I've seen the same problem and it was becuase the names were CNAMEd and not IN A records in DNS. I currently have namedbased virtualhost set up as follows: NameVirtualHost 216.238.39.126 <VirtualHost 216.238.39.126> ServerName www.blah.com DocumentRoot /home/www/www.blah.com </VirtualHost> <VirtualHost 216.238.39.126> ServerName www.there.com DocumentRoot /home/www/www/there.com </VirtualHost> Each one of these have an A record pointing to 216.238.39.126 On Thu, 5 Oct 2000, James Housley wrote: > Nate Johnston wrote: > > > > I am trying to set up name-based virtual hosts on apache 1.3.12. No matter how many > > hosts I enter, apache only displays the first one in the configuration file. For > > example: > > > > NameVirtualHost 216.141.207.119 > > > > <VirtualHost 216.141.207.119> > > <VirtualHost coyote.broadwing.com> > > ServerName coyote.broadwing.com > > DocumentRoot /home/www/coyote.broadwing.com > > </VirtualHost> > > > > <VirtualHost 216.141.207.119> > > <VirtualHost codesnake.com> > > ServerName codesnake.com > > DocumentRoot /home/www/codesnake.com > > </VirtualHost> > > > > That should fix your problem > > Jim > -- > "It's a damn poor mind that can only think of one way to > spell a word." > -- -Andrew Jackson > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010051318510.8680-100000>