The following reply was made to PR general/1197; it has been noted by GNATS.

From: "Erik T. Brandsberg" <[EMAIL PROTECTED]>
To: Dean Gaudet <[EMAIL PROTECTED]>
Subject: Re: general/1197: VirtualHost directives don't respond to all the IP's 
that a name might resolve to.
Date: Sat, 4 Oct 1997 21:06:32 -0500 (CDT)

 
 
 
 Erik Brandsberg
 CIO, The Link
 On Sat, 4 Oct 1997, Dean Gaudet wrote:
 
 > 
 > 
 > On Sat, 4 Oct 1997, Erik T. Brandsberg wrote:
 > 
 > > > Yup this is the problem.  Call it non-intuitive (I'll agree with you), 
 > > > but
 > > > the global ServerName dictates what ip addresses will be considered for
 > > > HTTP/1.1 Host: based vhosting... which is almost never what anyone 
 > > > wants. 
 > > > The standard workaround is this: 
 > >
 > > This doesn't quite make sense--the global ServerName directive was
 > > pointing to BOTH IP's that I wanted, not just one.
 > > The virtual hosts that
 > > I had a problem with were on the same IP's (I used the same dns .hosts
 > > file for vhost and every other domain to insure consistancy).  It seems
 > > like it chose to respond to HTTP 1.1 requests only on one of the two IP's
 > > that were specified in the global servername directive, which I would say
 > > is wrong, even given the limitations described.
 > 
 > Oh you and I are talking about completely different things. 
 > 
 > You're trying to give name-based (i.e. HTTP/1.1) vhosts multiple IP
 > addresses right?  Well, that just isn't possible.  A vhost is either
 > name-based (which works on exactly those ip addresses matching the global
 > ServerName, i.e. 209.12.240.131) or ip-based, it can't be both.
 But the name based vhosts had the exact same IP addresses (note plural) as
 the global servername did.  As I had mentioned, the vhost.the-link.net did
 have two IP addresses (changed due to this problem) and the vhosts were
 overlayed on exactly the same IP addresses.  When it had two IP addresses
 for vhost.the-link.net (the global name), it only handled the virtuals on
 one of the IP's not both.
 
 > 
 > Your global ServerName has exactly one ip address, so all your name based
 > hosts must also have exactly one ip address.
 > 
 > Have you read htdocs/manual/vhosts-in-depth.html ? 
 > 
 > Dean
 > 
 
 

Reply via email to