Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

An error occurred the last time AutoSSL ran

Discussion in 'Security' started by xameleon, May 22, 2019.

  1. xameleon

    xameleon Member

    Joined:
    May 22, 2019
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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?
     
    #1 xameleon, May 22, 2019
    Last edited by a moderator: May 22, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    xameleon likes this.
  3. xameleon

    xameleon Member

    Joined:
    May 22, 2019
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Website Owner
    @cPanelLauren Thank you very much for the insight! How do I add an exception, via .htaccess or somewhere else?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @xameleon


    You should be able to add this in the .htaccess file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    xameleon likes this.
  5. xameleon

    xameleon Member

    Joined:
    May 22, 2019
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Website Owner
    @cPanelLauren Would it be possible to tell me what to include in the .htaccess? Would appreciate it very much!
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    481
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    xameleon likes this.
  7. xameleon

    xameleon Member

    Joined:
    May 22, 2019
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
     
  8. xameleon

    xameleon Member

    Joined:
    May 22, 2019
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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]
     
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice