Symptoms
Attempting to load an SSL returns a different domain website.
Description
This issue can happen for a variety of reasons. The most common cause is the IP mismatch between domains. Third-party web services like Nginx, Varnish, Tomcat, and NodeJS cause similar issues but for different reasons. cPanel servers will use SNI by default which means multiple domains share the same IP address. If you attempt to load a domain using the same IP as another domain, but it doesn't have an SSL, it could also cause another domain to load due to SNI rules. Apache will load the first vhost (virtual host), which matched the request with the same IP address.
Workaround
Review the steps in the below documentation URL for troubleshooting these issues.
Troubleshooting SSL-Related Issues
If you've already confirmed that the issue doesn't occur because of any of the listed problems in the documentation. It is also important to make sure the troubleshooting steps were followed after disabling any Third-party web services like the following:
- BitNinja
- Nginx
- Varnish