I’ve many sites hosted on my server, most of them are running well. But every once a while, when I try to open one of the sites like http://site1.com, it will instead open https://site1.com, and then it actually opens the default site of the server.
Both site1.com and the default site has no SSL installed - when I go to Server configuration->SSL Certificate, it shows “This virtual server does not have an SSL certificate yet. Use one of the tabs on this page to generate a cert and key.”
site1.com is built with Wordpress. I’ve commented out all lines in .htaccess, but the problem persists. In the database, I can see “siteurl” and “home” are set as “http://site1.com”.
So I am really stuck here. Could someone tell me what could be causing this problem and how to fix it?
the site’s URL is wp.peaceever.com.
This is the 2nd site on my server having this problem, they are both built by Wordpress.
It was running well yesterday. Today, for testing purpose, I pointed wp.peaceever.com to a shared hosting server and then pointed back to virtualmin. After this, when I go to wp.peaceever.com it will try to open https and then go to the default site.
I am now trying to setup ssl for wp.peaceever.com and see if it will help solve this problem.
But why it behaves like this is what I need to figure out.
Update
After I set up Let’s Encrypt, it seems the website is back to normal - For now if I open it in incognito mode, it will work; however if I open it in normal mode, it still goes to the default site.
For this site, after I set up Let’s Encrypt, it is good now - meaning although I have to open it with incognito mode but I know it is browser cache in play.
However, for the 1st one with this problem (url is wp.nycweb.io) , even though I open it with incognito mode or other device, it is still going to https://wp.nycweb.io. This one I haven’t set up Let’s Encrypt yet.