httpd-users mailing list archives

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

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

I'm not sure where you found this example.  Certainly not in the official docs:

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.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message