The operating system my web server runs on is (include version): ubuntu 16.0.4
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
I installed the certificate on a new VPS, transferred the domain name from a different VPS. Everything worked fine for a week or so, but now it stopped working. The certificates are not overdue or anything. I’m completely new to this, what should I do? I don’t understand where to even start. Thanks!
This could be because you have a different configuration between your HTTP and HTTPS virtual hosts, or it could be that you are simply missing a virtual host entry for HTTPS and the default one is showing up instead.
Please share your virtual host configuration files with us if you’re not sure how to fix this.
The Virtual Host files are typically found in /etc/apache2/sites-available. Please share each one of them with us. If any of them contain an Include statement that drags in another configuration file, please share the referenced file as well.
You might find it easier to use a pastebin that supports multiple files like GitHub Gist rather than pasting directly to the forum.
So you have some possibly conflicting virtual host entries, one of which doesn’t enable .htaccess files or symlinks, two features you may be relying on and could see 404s without.
Your HTTPS also doesn’t redirect away from www to the apex domain like HTTP does. You probably want to do this consistently.
So I would suggest dropping the Ubuntu default SSL file that might be causing the conflict, and setting up a www to not-www redirect for HTTPS like already exists for HTTP.
(Please back up your existing configuration beforehand so you don’t have to retrieve it from GitHub later if there’s a problem.)
However, I noticed that https://arshift.com is still showing certificate errors. (Try it in Firefox if it seems to load in Chrome.) If the certbot command I suggested earlier didn’t throw any errors, you may have to sudo service apache2 restart to get your web server to load your certificate.
Otherwise, I would suggest sharing the error you get from certbot and sorting that out first, as the configuration I suggested will make this certificate error more prominent.
It could be, or you could spend several hours doing everything over again only to end up right back where you started. If we’re not sure what the problem is it’s hard to promise it won’t come back again.