October 21, 2024

Cloudflare enable CDN TOO_MANY_REDIRECTS fix

Why?

The default CloudFlare SSL mode is set to “Flexible”, CloudFlare will try to connect to your origin server over HTTP, and your origin server may redirect to HTTPS, potentially creating a loop. That’s what happens to me cause I have set my website to force rewrites of all HTTP to HTTPS.

截屏2024-10-19 下午9.19.37



Solution

  1. Open Cloudflare, and choose SSL/TLS at the sidebar.
  2. Click Configure.
  3. Change SSL/TLS encryption mode to Full or Full (strict).

截屏2024-10-19 下午9.20.48

截屏2024-10-19 下午9.21.23-0



Reference

About this Post

This post is written by Andy, licensed under CC BY-NC 4.0.

#Cloudflare#TOO_MANY_REDIRECTS