ERR_TOO_MANY_REDIRECTS with nginx
The Cloudflare offers the following encryption modes:
- Off (no encryption)
- Flexible
- Full
- Full (strict)
- Strict (SSL-Only Origin Pull)
In my case it was Cloudflare. We had to change to Full SSL encryption.
How to Change SSL/TLS mode
In Cloudflare, after you have installed the Origin CA certificate on your origin web server, it is necessary to update your application’s SSL/TLS encryption mode.
If all your origin hosts are protected by Origin CA certificates or publicly trusted certificates:
Go to SSL/TLS.
For SSL/TLS encryption mode, select Full (strict).
If you have origin hosts that are not protected by certificates, set the SSL/TLS encryption mode for a specific application to Full (strict) by using a Page Rule.