Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

donniebrandt's avatar

Let's Encrypt SSL Too Many Redirects

I installed a Let's Encrypt SSL certificate for my site, donniebrandt.com. Everything went smoothly, but when I attempt to open the site, it gives me the run around. Is this an nginx configuration issue?

For context, the code doesn't do any redirects, and I am also using CloudFlare.

0 likes
11 replies
bashy's avatar

You have an issue with the server_name entries and the redirects used to add/remove www or go from HTTP to HTTPS. Since it does it on HTTPS as well, it could be just some redirect in your vhost that's causing it.

Mind sharing those so we can see? Removing any credentials etc.

marknuyens's avatar

This could be very helpful to Forge's UI, i.e. by letting users know that this may be a common issue. That goes on some other things in Forge as well, where a small "troubleshoot" section would definitely be of help. (Yes, I know this is not an exclusive Forge-related issue, but still).

sheerazabbas's avatar

@Shovels Thanks. it fixed the issue.

If some one not able to found Cloudflare -> 'Crypto' tab Just check SSL/TLS -> Overview from left menu and change SSL/TLS encryption mode to Full or Full (strict)

bashy's avatar

Oh you're using CF. What setting do you have for SSL? Since CF is a proxy, Nginx probably still thinks it's a HTTP connection so it's redirecting over and over.

Change it to Full or Strict (since you have a valid cert)

Award @Shovels if that was it. I missed the "CloudFlare" part :P I had the exact same when I forgot to switch it.

2 likes

Please or to participate in this conversation.