Jump to content

Cloudflare & SSL in new subdomain


maicol07

Recommended Posts

Hi,

I've created a new subdomain (updates.maicol07.it) where I installed OctoberCMS from Softaculous. CPanel issued a self-signed certificate that expires next year but if you try to open https://updates.maicol07.it it says:

Ahoy! You're seeing this page because you've reached a website on our service that's not configured to accept secure connections (HTTPS).

If you're a visitor, try visiting this site again, removing the "https" in front of the website domain. Please note that your connection to this user's website will not be secure.

If you're the webmaster of this site, we recommend you take a few minutes to set up SSL so your visitors can connect securely. You can do this from your control panel. If you need assistance, please visit our support forums or Wiki.

Thanks for choosing HelioHost!

Sincerely,

What should I do? Wait for AutoSSL? Note that some days ago I've set up Cloudflare.

Thanks

Edited by maicol07
Link to comment
Share on other sites

Then either remove CLoudflare association or ask an administrator to disable AutoSSL on your account. SInce Cloudflare SSL will be breaking AutoSSL  so both can't exist together.

 

Which one do you want to keep?

If I disable Cloudflare SSL option, will AutoSSL work?

Link to comment
Share on other sites

Ok, so now my htaccess is like this and my site is broken by redirect error:

Header set Strict-Transport-Security "max-age=31536000" env=HTTPS

RewriteEngine On
# This will enable the Rewrite capabilities

# This checks to make sure the connection is not already HTTPS

RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# This rule will redirect users from their original location, to the same location but using HTTPS.
# i.e.  http://www.example.com/foo/ to https://www.example.com/foo/
RewriteCond %{HTTP_HOST} ^maicol07\.it$ [OR]
RewriteCond %{HTTP_HOST} ^www\.maicol07\.it$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^status$ "https\:\/\/status\.maicol07\.ml\/" [R=301,L]

Edited by maicol07
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...