An error occurred the last time AutoSSL ran

xameleon

Member
May 22, 2019
5
1
3
Bulgaria
cPanel Access Level
Website Owner
Hello,

For my new personal domain I installed Let's Encrypt SSL via the cPanel of my hosting provider.

However, I noticed the following error prntscr.com/nrz9l2 in cPanel.

Can you help me resolve it, please?
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
Houston
cPanel Access Level
DataCenter Provider
Hi @xameleon

The domain in the screenshot you provided has a forced redirection to https in place with the litespeed webserver. In order for the DCV check to complete successfully you'd need to either add an exception for the DCV check or temporarily remove it so the check can complete.


Thanks!
 
  • Like
Reactions: xameleon

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,110
659
263
Houston
cPanel Access Level
DataCenter Provider
  • Like
Reactions: xameleon

xameleon

Member
May 22, 2019
5
1
3
Bulgaria
cPanel Access Level
Website Owner
This is how my redirect currently looks like in .htaccess:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

After reading the links you gave me, thinking this is how the URL should be exluded for the DCV check:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} on
RewriteCond %{THE_REQUEST} /.well-known// [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=30
 

xameleon

Member
May 22, 2019
5
1
3
Bulgaria
cPanel Access Level
Website Owner
Wrong, I actually think it should look like this now:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# force https:// for all except some selected URLs
RewriteCond %{HTTPS} off
RewriteCond %{THE_REQUEST} !/.well-known/ [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# force http:// for selected URLs
RewriteCond %{HTTPS} on
RewriteCond %{THE_REQUEST} /.well-known/ [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
  • Like
Reactions: cPanelLauren