ERR_TOO_MANY_REDIRECTS using origin ssl

I have a Nginx server setup to serve a website and whenever I connect to it via my domain it does
It only does this over HTTPS and I am using Cloudflare origin certificates
Nginx config:

server {
      listen 80;
      listen [::]:80;
      listen 443 ssl;
      listen [::]:443 ssl;

      ssl_certificate /etc/ssl/certs/cert.pem;
      ssl_certificate_key /etc/ssl/private/key.pem;

      location / {

You can start with this #CommunityTip:

I have already tried the solutions listed there and that does not fix the error.

Try connecting directly to origin and see if you can track down if the redirect is coming from there:
curl -svo /dev/null --insecure --connect-to :: (change your domain and server IP address)

Its just saying failed to connect to 443

Your config looks like it’s trying to listen on 443, but something at your end isn’t allowing those connections.

I fixed that but I dont see anything indicating redirects
Edit: If I turn off force HTTPS and connect without HTTPS it works perfectly fine. So I think its something to do with force HTTPS.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.