Skip to main content

Wrong SSL being assigned to a domain when changing the sites IP address

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! That makes sense to me, as there is likely a brief period where the DNS for the site and Apache are out of sync. This causes Apache to load whatever vhost it thinks is the best response, which will be the first secure vhost on the system. You can work around this issue by setting up a default SSL vhost using the following guide:
    0
  • vincentg
    Thank you for your reply. I suspect you are right about it being due to DNS. I tested with some of my own sites (as opposed to clients) and within an hour they were resolving fine and using the correct SSL. One thing that is strange... The initial SSL that was being incorrectly shown was from one of my reseller clients. They no longer hosted the site and their client had moved to Ionos. The webspace was still present and Auto SSL was still enabled (with no site) Technically there was no SSL being installed because the domain didn't resolve to the server. I simply disabled auto SSL for that domain, uninstalled the certificate and that prevented that SSL from being presented. Very odd that it would try and show an SSL for a site that doesn't even resolve to the server. Now the SSL being shown in error Is another client of a different reseller. This time the DNS does resolve to us and the site is a holding page. As I mentioned before the issue resolves itself within the hour so I am just doing it late into the night so it doesn't effect clients.
    0

Please sign in to leave a comment.