Re: [users@httpd] Namebased Virtual Hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/17/06, Gregor Schneider <rc46fi@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux