Re: Problem with NameVirtualHost and VirtualHost

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

 



You can't to name based virtual hosting.

You need more IP addresses :)

The way SSL works is by connecting to the first host. It will then be
tied to that one forever...

You'd need to run the extra SSL sites on either extra IP addresses or
other port numbers.

D


On Tue, 2007-11-20 at 16:09 +0100, Gregor Schneider wrote:
> Hi Guys,
> 
> I always keep being puzzled about those options, and I also don't get
> enlighted by the doc.
> 
> this is what I have:
> 
> System: Debian Etch
> 
> /etc/apache2/apaxhe2.conf:
> 
> ...
> NameVirtualHost *:80
> NameVirtualHost *:443
> ...
> 
> in /etc/apache2/sites-enabled I have
> 
> file clue:
> 
> <VirtualHost *:80>
>     ServerName test-clue
>     ....
> </VirtualHost>
> <VirtualHost *:443>
>     ServerName test-clue
>     ....
> </VirtualHost>
> 
> file dom:
> 
> <VirtualHost *:80>
>     ServerName test-dom
>     ....
> </VirtualHost>
> <VirtualHost *:443>
>     ServerName test-dom
>     ....
> </VirtualHost>
> 
> file ltc:
> 
> <VirtualHost *:80>
>     ServerName test-ltc
>     ....
> </VirtualHost>
> <VirtualHost *:443>
>     ServerName test-ltc
>     ....
> </VirtualHost>
> 
> Since I'm running the test-server on one single IP, I'm aware that I'm
> getting ssl-warnings - it doesn't matter.
> 
> However, this is what's driving me nuts:
> 
> When I enter the url "https://test-ltc";, I'm always sent to
> "https://test-clue";, and I kust don't understand why.
> 
> According to the docs
> (http://httpd.apache.org/docs/2.2/de/vhosts/examples.html) my example
> doesn't look all that wrong.
> 
> Is there anything I'm overlooking?
> 
> This is my /etc/hosts:
> 
> 10.170.202.5    test-clue
> 10.170.202.5    test-ltc
> 10.170.202.5    test-ltc-kr
> 10.170.202.5    test-dom
> 
> Could somebody please shed some light here?
> 
> TIA
> 
> Gregor


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