Problem with NameVirtualHost and VirtualHost

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

 



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
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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