[users@httpd] Limiting SSL to a specific virtual host

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

 



On a 1.3.27 server with 1 IP address and 3 name based virtual hosts. As it is now, if you use 'https' with any of the domain names that resolves to this server's address, you'll see the same document root. How do I limit the SSL part to work for just "www.example2.com" and not for any of the other domains? Also, suggestions on what to return in those other cases are also welcome (404? Something else?).

Here's my minimal config:

ServerName www.example1.com
DocumentRoot /example1
<VirtualHost *>
</VirtualHost>

<VirtualHost *>
    ServerName www.example2.com
    DocumentRoot /example2
</VirtualHost>

<VirtualHost *>
    ServerName www.example3.com
    DocumentRoot /example3
</VirtualHost>

<VirtualHost _default_:443>
    # I only want this port to "work" for https://www.example2.com/*
    DocumentRoot /example2
</VirtualHost>

Thanks.

---------------------------------------------------------------------
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