Received: by taz.hyperreal.com (8.6.12/8.6.5) id MAA01176; Sun, 21 Apr 1996 12:31:48 -0700 Received: from mail.barrnet.net by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id MAA01170; Sun, 21 Apr 1996 12:31:46 -0700 Received: from ace.nueva.pvt.k12.ca.us (ace.nueva.pvt.k12.ca.us [198.31.42.1]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with ESMTP id MAA05531 for ; Sun, 21 Apr 1996 12:31:44 -0700 (PDT) Received: from localhost by ace.nueva.pvt.k12.ca.us with SMTP (1.37.109.16/15.5+ECS 3.3+HPL1.1) id AA012625102; Sun, 21 Apr 1996 12:31:42 -0700 Date: Sun, 21 Apr 1996 12:31:42 -0700 (PDT) From: Alexei Kosut To: new-httpd@hyperreal.com Subject: Re: virtual hosts failing (fwd) In-Reply-To: <199604211851.AA009882711@ooo.lanl.gov> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com On Sun, 21 Apr 1996, Rob Hartill wrote: > > Apache's working exactly as it's supposed to, therefore, it's just > > your configuration that was a bit screwed up. > > thanks. I'll pass that on to the culprit :-) > > So, would this have worked under 1.0.3? I never tried it from > anything other than Netscape. None of our lynx users complained > with 1.0.3 Yes, it would have worked fine, at least as far as uk.imdb.com was concerned. > Presumably, Apache is now quietly ignoring some misconfiguration. > Wouldn't it be better to at least write something to STDERR on > startup (most people start a new Apache from the command line > for the first time). It wasn't really a misconfig under 1.0.3. It was just a Bad Idea, but legal, actually. Here's the problem: The main server was set to think it was movie.pcug.co.uk, which translates to 192.68.174.59. There was also a virtualhost set on uk.imdb.com, with is also 192.68.174.59. So whenever a request on the 192.68.174.59 interface came in, it looked first at the virtualhosts, found a matching one, and used it. In other words, the main server was just always ignored - unless you had other interfaces for the machine that you didn't have virtual hosts for; olive.pcug.co.uk was one of those, presumably. Requests to that machine would have seemed to work fine, unless a redirect was sent, in which case it would have redirected to the wrong interface. Oops. Now, under 1.1, it checks each virtualhost to see if it has the same IP address as the main interface (as defined by ServerName), and if it does, it disables that virtualhost when matching IP addresses (it still checks them when matching Host headers). This additional check was neccessary to implement Host-parsing transparently to the user. Hope this helps... -- ________________________________________________________________________ Alexei Kosut URL: http://www.nueva.pvt.k12.ca.us/~akosut/ Lefler on IRC, DALnet