VLT-Website-Heading

How to get a custom domain to work on Blogger with SSL

May 7, 2018 2:28:00 PM / by Vu Long Tran

For those trying to proxy your traffic through Cloudflare and are also using Blogger.com/ Blogspot.com to host your website you may find some issues with the HTTPS redirects and general loading of your HTTPS on your website.

This follows some of the posts that I have seen on the Cloudflare Community page on "Custom domain with blogger not working".

I recommend setting up the redirect on Cloudflare.com, so that Cloudflare's edge locations will do the redirecting effort, rather than you needing the visitor to send a request back to your origin as part of the redirect work.

So here's a few things that I did to have this work.

1. Set IP addresses to the same per Google's support article 

 
Add four A-records which point to Google IPs.
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
 

2. Set www. as CNAME to vulongtran.com

Set my www. as CNAME to vulongtran.com (mydomain.com)
 
 

3. Set SSL to Full mode 

Please try using the the SSL = Flexible mode if it is breaking, as  we cannot upload an origin SSL to blogger.com.

4. Set a Page Rule to redirect

This is more optional to do at Cloudflare's edge rather than on Blogger.com's settings. As that'll set the redirect on the origin server, which means that the request needs to find your origin to complete the redirect.
I recommend setting up the redirect on Cloudflare.com, so that Cloudflare's edge locations will do the redirecting effort and work, rather than you needing the visitor to send a request back to your origin server to do this redirecting work.

 
Page rule:

vulongtran.com/*
Forwarding URL: 301 Permanent Redirect
https://www.vulongtran.com/$1

5. Test that is working

So far it is working fine: https://www.vulongtran.com

Many thanks to Nico (Andronicus Riyono) from the Cloudflare Support team for sussing out the solution here and recommending the Page Rule level redirect!

Note - I brought a dedicated SSL certificate so it looks like this:

Topics: web development, cloudflare, cybersecurity, blogging, blogger, ssl

Vu Long Tran

Written by Vu Long Tran

Solutions Engineer APAC. ex-@Forrester consultant. Writing on #cloud #howto guides and #tech tinkering!