Wrong Website Showing Over HTTPS

How the Issue Manifests

Navigating to a domain over https://{domain.com} (replacing {domain.com} with the corresponding information) loads the homepage for another website on the server.

Cause of the Issue

The domain does not have an SSL certificate.

When a domain is accessed over https, Apache will check to see if that domain has a :443 section listed in its vhost file. The :443 section is created when an SSL certificate is added to a domain.

If the domain’s vhost does not have a :443 section, Apache will then check the first vhost, alphabetically, on the same IP, which does have a :443 section. If one is found, it will load that domain, instead.

If there are no vhosts on the server with a :443 section, Apache will default to the /var/www/html directory.

This is not a limitation of InterWorx. It is the process in which Apache handles SNI and multiple domains on the same IP address. Detailed information can be found here.

How to Resolve

There are multiple options that may be taken to resolve this issue: