I have a few sites on a virtual host powered by nginx. They all use free LetsEncrypt ssl certification for root domain and for www subdomain. I forgot to inclide the www.example.com server_name to on of my site`s nginx config so it becomes unavailable via https://www.example.com link. But somehow google indexed and cached another nearby site (the first one by name from the sites folder) for this link. The simple fix is to write a proper config and manually reindex the site. But it is very weird situation for me and my question is why did this happen and how to prevent this in general?
↧