Earlier, we used Cloudflare with our domain name over HTTP protocol. It worked correctly. Our site is based on WordPress.
Recently, we installed Auto-SSL on our domain name (provided by host on cPanel). We installed the Really Simple SSL plugin in our WordPress for HTTPS and everything worked correctly.
We had paused Cloudflare on our domain while we were setting up Auto-SSL and after we confirmed https:// was working correctly we tried enabling Cloudflare again but after we enabled Cloudflare our site started showing 502 error. Our site now works only when Cloudflare is paused. We tried everything with the Flexible SSL option in Cloudflare by looking at different support topics in this forum but nothing seems to work.
We read in some topics that Cloudflare free edition doesn’t support Auto-SSL and that it needs to be uninstalled for Flexible SSL to work in Cloudflare. We also tried uninstalling the Auto-SSL in cPanel and then configuring Flexible SSL in Cloudflare but still the issue exists.
Kindly guide us in a detailed way as to how we can correctly configure Cloudflare to work with the https:// on our domain.
If you were able to get Auto-SSL to create a certificate for your site, you should use SSL in Full (Strict) mode here. And you’re better off not using Really Simple SSL now that you have a proper SSL setup.
If you’re using cPanel that may have problems with AutoSSL running while using Cloudflare, you would be better off using cPanel to install one of Cloudflare’s Origin CA certificates:
You have certainly been thorough. And all the certificates look correct.
Is your Really Simple SSL plugin enabled? It should be turned off.
In your WordPress Settings->General, does it show site URLs with HTTPS?
Do you still have SSL here set to Full (Strict)?
p.s. The reason the 502 error screen changed is that it was first coming from your Host before DNS updated to route you through Cloudflare. The second screen is Cloudflare’s reporting of the 502 error from your host.
As a last resort, I suggest that you Pause Cloudflare and turn on AutoSSL again.
Once that’s working, unPause Cloudflare and confirm you’re still getting the 502. Then you can Pause Cloudflare again and open a Support Ticket. They can simulate running your site on Cloudflare and can hopefully figure out why there’s a 502 error.
I’m seeing some weird information, it’s almost like the site isn’t quite going through Cloudflare.
It’s showing a Cloudflare Origin Certificate, and the one and only IP address doesn’t start with 104.
I also think the settings are changing as we investigate, so it’s difficult to figure out what’s going on.
Open a Support Ticket and have them test it out the way it is right now. They can manually put Cloudflare in front of your site for internal testing. Provide them a link to this thread for more information.
I have raised a ticket now. But in the meanwhile, can you suggest me how can I best configure the site now so that I won’t have any issues tomorrow? Its a high traffic (100K+ daily visitors) news site and we cannot afford to have the https:// issue ongoing.
I am able to get the secure padlock icon with https:// if I install the Really Simple SSL plugin with the AutoSSL certification generated in cPanel.
Somehow, I am just not able to get Cloudflare to work with this. I’ve tried all sorts of combinations with the Cloudflare SSL settings and also in WordPress settings but nothing seems to work. Every single time I enable Cloudflare, I get the 502 error.
I’ve referred the following resources and tried every step but nothing seems to work correctly.