httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Namebased Virtual Hosts
Date Tue, 17 Oct 2006 15:41:44 GMT
On 10/17/06, Gregor Schneider <rc46fi@googlemail.com> wrote:

> NameVirtualHost test-dom:80
> <VirtualHost test-dom:80>

I'm not sure where you found this example.  Certainly not in the official docs:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html#using

You need only one NameVirtualHost directive for each IP-address/port
combination.  And you should not use hostnames in NameVirtualHost or
<VirtualHost>.  In a simple case like yours, you should use
NameVirtualHost *:80
(once) and
<VirtualHost *:80>
for each virtual host.  Then you have to make sure that what you are
typing in your browsers URL bar for the hostname exactly matches the
hostname specified in ServerName in each virtual host.

And in addition, your second and third ssl sites are not going to work
properly.  You can only have one ssl site on each IP-address/port
combination because the SSL certificate is selected before the
hostname is known.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message