If a domain without a matching HTTPS VirtualHost is requested, Apache serves the first entry in the configuration, as described here. This modification may also need to be performed for websites whose clients do not support SNI, as this change allows non-SNI clients to reach the correct website.
To perform this change, follow these steps:
- Access this page in WHM: WHM » SSL/TLS » Manage SSL Hosts.
- Locate the domain that you want to be the first in the configuration and select the option called "Make Primary". Doing this sets this VirtualHost as the first in the VirtualHost entries.