Forum archive
LAMP - Strange SSL issue, Forcing SSL not working
Good morning!
Long time turnkeylinux user here.
I'm having a strange issue forcing SSL - I've included this in my rewrite rule in the virtual host conf, however it won't force SSL. If I manually visit the website using http, and specifying a certain page, it still allows me to connect insecurely, and won't force. Is there something I am missing here?
#Redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Another strange issue, is that I'm not able to perform an SSL test. SSLlabs indicates "Assessment failed: Failed to obtain certificate"
I have configured LetsEncrypt via confconsole - all is working well in many browsers.
I appreciate any help!
Here is the site in question:
https://staging.annemarieninaphotography.com
SSLLabs page that fails:
https://www.ssllabs.com/ssltest/analyze.html?d=staging.annemarieninaphotography.com&hideResults=on
I'm also noticing the website times out intermittently since adding the SSL - mostly when working inside WordPress.