Hey guys I could really use some help as i’m fairly new to all this. I have installed cert-bot and ran it. It gives me a success message then I test the site and it says the site can’t be reached but the http version works fine. I ran the site through check dns and the results can be found here : https://check-your-website.server-daten.de/?q=lunchmoneybets.com. It shows I have certificates so not quite sure what the problem is. I think it might have something to do with my certificate name not having www. because If I curl https://www.lunchmoneybets.com it says subject name doesn’t match host name but if i curl just https://lunchmoneybets.com it works. Any help would be greatly appreciated!
My domain is: https://www.lunchmoneybets.com
I ran this command:
sudo certbot --apache
It produced this output: https://www.lunchmoneybets.com/
My web server is (include version): apache2
The operating system my web server runs on is (include version):
ubuntu 16.04
My hosting provider, if applicable, is:
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
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): cerbot 0.31.0
Ok thank you! I ran that command and it asked which virtual host file to choose. It only gives me the option of choosing lunchmoneybets.com.conf and lunchmoneybets.com-le-ssl.conf. I tried lunchmoneybets.com.conf and it said “The selected vhost would conflict with other HTTPS VirtualHosts within Apache. Please select another vhost or add ServerNames to your configuration.” but I have bother server names in the .conf files
Ok I got them both in the same certificate but the https is still not working. the http site works fine http://www.lunchmoneybets.com/. Also I have only 1 port 80 vhost and 1 port 443 vhost in my sites enabled. I just deleted my port 443 vhost and reinstalled but I am getting the same problem.