I've just setup Apache 2.2.18 with mod_ssl enabled and its configured to listen to one IP address on port 443. There are many domains with A DNS record poiting to this IP address. But I want to configure Apache with "VirtualHost"s for specific domains with their DocumentRoot.
My config in httpd.conf is this:
Listen 1.2.3.4:443
NameVirtualHost 1.2.3.4:443
<VirtualHost 1.2.3.4:443>
DocumentRoot /data/www/domain.com
ServerName www.domain.com
SSLEngine On
</VirtualHost>
However, my problem and question is, that this Apache is using this VirtualHost for ANY domain pointing to the same IP address. It looks like its ignoring the "ServerName" parameter. I want to run this SSL-Apache only on specific domains. Anybody can help ?