AutoSSL not working with CloudFlare
I have a VPS,
Im using CloudFlare and WHM AutoSSL can not verify domain name.
I have errors like:
A temporary solution is to "Pause Cloudflare on Site" (Cloudflare), run again "AutoSSL" (cPanel), and then "Enable Cloudflare on Site" (Cloudflare).
Any better solution with AutoSSL and CloudFlare?
Notes:
- Iam using Full encryption mode at Cloudflare (Encrypts end-to-end, using a self signed certificate on the server)
- I haven't activate IPv6 at my VPS
-
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 -
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 -
Do you have the site forced to HTTPS elsewhere? (in the CMS or within cPanel) 0 -
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 JoomlaOptions +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 a0 -
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 interface0 -
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 -
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 all0
Please sign in to leave a comment.
Comments
7 comments