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)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or leave a kind comment!

Okay