Mike -- EMAIL IGNORED wrote:
On Thu, 09 Oct 2008 21:43:24 +0200, Kai Schaetzl wrote:
Mike -- EMAIL IGNORED wrote on Thu, 9 Oct 2008 19:28:39 +0000 (UTC):
In other words, ServerName alone fails to distinguish two named virtual hosts.
Oh, it sure does. If it is present in both - which it isn't in your config.
Kai
Yes, a retest confirms your observation. I am therefore left with the need to remove the VirtualHost that has no ServerName. I can access the site with an IP address, which, I think, this is meant to prevent.
Mike.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You need to remove the :80 in the VirtualHost declarations that contains Servername entries.
I have several Domain and Sub-Domain host names running against one IP using the VirtualHost pratice. My most recent server is running on CentOS 5.2.