I have an SSL certificate installed and working for my website, however, 5 different domains all point at the same host, and if a user is directed to
https://(the other four) they get a big angry red screen.
If I only have one VirtualHost that seems to be the catch-all, which is what I don't want. I attempted to make another VirtualHost to catch the uncertified domains:
NameVirtualHost *:443 <VirtualHost *:443> ServerName example2.com ServerAlias example3.com DocumentRoot /srv/deadwww/ # contains nothing of consequence </VirtualHost> <VirtualHost *:443> ServerName example.com SSLEngine on SSLCertificateFile /path/to/certs/example.com.crt ...
but Apache won't even start then, barking:
[error] Server should be SSL-aware but has no certificate configured
So, If I only have one VirtualHost entry, that catches all the names and fails auth on most, and if I try to catch the bad names before getting there...I can't because Apache won't let me. How do I solve this problem?