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 220.127.116.11:443 NameVirtualHost 18.104.22.168:443 <VirtualHost 22.214.171.124: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 ?