I’m having issues getting my website to accept https and the biggest frustration is that it initially worked like a charm until I did something that broke it.
So I’m hosting brainootropics.com on a centos 7 server and installed Let’s Encrypt’s certbot package. I have run certbot and I’ve set up a ssl certificate for my website without any issues so my brainootropics.com.conf file looks like this:
<Directory /websites/brainootropics.com/www>
Require all granted
AllowOverride None
</Directory>
<VirtualHost *:80>
DocumentRoot /websites/brainootropics.com/www
ServerName brainootropics.com
ServerAdmin [email protected]
ErrorLog "logs/brainootropics.com_error_log"
CustomLog "logs/brainootropics.com_access_log" combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =brainootropics.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
#Listen 443
<VirtualHost *:443>
DocumentRoot /websites/brainootropics.com/www
ServerName brainootropics.com
# SSLEngine on
ServerAdmin [email protected]
ErrorLog "logs/brainootropics.com_ssl_error_log"
CustomLog "logs/brainootropics.com_ssl_access_log" combined
SSLCertificateFile /etc/letsencrypt/live/brainootropics.com-0003/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/brainootropics.com-0003/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/brainootropics.com-0003/chain.pem
</VirtualHost>
Right now the SSL Cloudflare configuration tab looks like this:
Where should I look for or what should I try in order to make this work? I’ve followed various tutorials and as far as | can tell this should already be working.