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)

Image description

Join the One Year Club

You can earn this badge by being a registered member of the DEV Community for at least one year. Create an account and get started today.