Hello Cloudflare Community members! I have been trying to fix the issue for the last 6 hours.
SSL: Issued by Sectigo Limited and valid, it did work before adding the site to CF.
Problem: If I use Full or Full (Strict) SSL on CF, the site displays 502 Bad Gateway. I have tried to install Cloudflare Origin CA but the problem doesn’t go away. I have tried disabling CF completely by changing the nameservers back to pre-CF and the website worked fine.
I could use Flexible SSL but then if I force HTTPS via CF (either a page rule or the setting in Crypto) it creates a never ending redirect loop. .htaccess doesn’t have any HTTP->HTTPS redirects.
The only solution is now to use Flexible SSL with optional SSL but I want to only have HTTPS traffic.
On a side note: with Flexible SSL it works. It’s just a redirect problem when I try to force all traffic through HTTPS in CF control panel, however I don’t have any redirects on the server. The website is custom written, no Wordpress. There is a “Community Tip” topic regarding the redirects, but unfortunately none of it applies.