Skip to main content

AutoSSL not working with CloudFlare

Comments

7 comments

  • cPanelLauren
    The DNS DCV is failing because CloudFlare manages DNS for the domain. The HTTP DCV is failing because the domain is forcing HTTPS redirection. To resolve this you would need to add an exception for the DCV check to complete over HTTP instead of HTTPS or disable the forced redirection.
    0
  • thanasis
    To resolve this you would need to add an exception for the DCV check to complete over HTTP instead of HTTPS or disable the forced redirection.

    Hello @cPanelLauren , i tried this at cloudflare, but it doesn't work. Can you help me?
    0
  • cPanelLauren
    Do you have the site forced to HTTPS elsewhere? (in the CMS or within cPanel)
    0
  • thanasis
    Hello @cPanelLauren have a look at .htaccess (two cases) 1) CMS Opencart # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files Require all denied ## For apache 2.2 and older, replace "Require all denied" with these two lines : # Order deny,allow # Deny from all # SEO URL Settings RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301] # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
    2) CMS Joomla Options +FollowSymLinks ## Mod_rewrite in use. RewriteEngine On ## Begin - Rewrite rules to block out some common exploits. # If you experience problems on your site block out the operations listed below # This attempts to block the most common type of exploit `attempts` to Joomla! # # Block out any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a
    0
  • cPanelLauren
    The rewrite to https is in: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
    For the other one the forced https can be present in the Joomla interface
    0
  • thanasis
    Hello @cPanelLauren
    The rewrite to https is in: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
    For the other one the forced https can be present in the Joomla interface

    Yes Ok, but i tried to exclude ".well-known/*" but still the autossl failed. Can you help me?
    0
  • cPanelLauren
    What was the output when it failed, I also see the following which would block access to .txt files: # Prevent Direct Access to files Require all denied ## For apache 2.2 and older, replace "Require all denied" with these two lines : # Order deny,allow # Deny from all
    0

Please sign in to leave a comment.