white cloudy sky

Resolving “too many redirects” after enabling Cloudflare proxy on domain

I recently encountered an issue with a website after enabling Cloudflare’s proxying.

The traffic flow essentially looked like browser > Cloudflare > origin server. The origin server was a Nginx web server, where the website in question was protected with a certificate for Let’s Encrypt.

The solution was simple. In Cloudflare, change the SSL/TLS encryption mode from Flexible to Full (strict) as can be seen in the screenshot below. Following this change, everything immediately started working again as intended.

Scroll to Top