Index: [Article Count Order] [Thread]

Date:  Wed, 09 Aug 2006 15:15:25 -0700
From:  Bruce Timberlake <brucetimberlake (at mark) gmail.com>
Subject:  [coba-e:06299] Re: BQ default web page
To:  coba-e (at mark) bluequartz.org
Message-Id:  <44DA5E7D.4030501 (at mark) gmail.com>
In-Reply-To:  <F07DD4D0940AFF41A207BE85479D2AFF181442 (at mark) server.mainline.local>
References:  <F07DD4D0940AFF41A207BE85479D2AFF181442 (at mark) server.mainline.local>
X-Mail-Count: 06299

> Nope :)
> 
> This is from my httpd.conf
> 
> #</VirtualHost>
> Include /etc/httpd/conf/vhosts/site1
> Include /etc/httpd/conf/vhosts/site2
> 
> Put the IP in and I get vsite133

And I'm guessing that site1 has the same IP as site133?  I'm stumped. 
The official docs [1] say:

Unless a NameVirtualHost directive is used for a specific IP address 
the first vhost with that address is treated as an IP-based vhost.

Hmmm... but wait, the config file *does* use NameVirtualHost 
directives, doesn't it?? Maybe that's a clue... the rest of that 
section goes on to say:


If name-based vhosts should be used a NameVirtualHost directive must 
appear with the IP address set to be used for the name-based vhosts. 
In other words, you must specify the IP address that holds the 
hostname aliases (CNAMEs) for your name-based vhosts via a 
NameVirtualHost directive in your configuration file.

Multiple NameVirtualHost directives can be used each with a set of 
VirtualHost directives but only one NameVirtualHost directive should 
be used for each specific IP:port pair.


Where are the NameVirtualHost directives and what order are they in? 
Maybe that will help you...?


[1] - http://httpd.apache.org/docs/2.2/vhosts/details.html