DEV Community

Cover image for How to solve: Too many redirects website error after adding SSL(lets encrypt) to nginx server?
kamasuPaul
kamasuPaul

Posted on

How to solve: Too many redirects website error after adding SSL(lets encrypt) to nginx server?

So after adding lets encrypt on my server using certbot, i was asked if all HTTP traffic should be redirected to HTTPS. I gladly said yes and i was happy about my decision. Unfortunately When i checked the website again, it wasn't working, displaying a too many redirects error. What had i done wrong? and What's the solution?

Turns out the solution is to change the SSL/TSL to full(strict) in the cloudflare dashboard and that did the trick. Also if no ssl is setup on the server, its can only work if the SSL/TLS mode is set to flexible.
That's it. Hope it helped

Image description

Top comments (0)