Question

ERR_TOO_MANY_REDIRECTS Error

codeHello, I am having the following error when I access to my app (https://www.tumicrositio.com), configured with nginx & puma server: “ERR_TOO_MANY_REDIRECTS”

Here is my NgInx site-enabled configuration:

upstream puma {
  server unix:///path/to/my/app- puma.sock;
}

server {

  listen 80;

  location / {
    rewrite ^/(.*) https://tumicrositio.com/$1 permanent;
  }

}


server {

  listen 443 ssl;

  server_name tumicrositio.com;
  ssl_certificate /path/to/my/certs/tumicrositio.com.chained.crt;
  ssl_certificate_key /path/to/my/certs/tumicrositio.com.key;

  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;
  ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

  root /path/to/my/rails/app/public;
  access_log /path/to/my/rails/app/log/nginx.access.log;
  error_log /path/to/my/rails/app/log/nginx.error.log info;

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @puma;
  location @puma {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;

    proxy_pass http://puma;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 10M;
  keepalive_timeout 10;

}

I have an account in Godaddy, and my domain is registered there. In Godaddy I have the Name Servers pointing to DigitalOcean:

NS1.DIGITALOCEAN.COM NS2.DIGITALOCEAN.COM NS3.DIGITALOCEAN.COM

I just want to know a few things:

  1. There is something wrong in my virtual server?
  2. What else do I have to pay attention to solve this problem. It is possible that is something wrong in my app?

Regards, (And sorry about my english)

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Estou com o mesmo erro em meu site de cifras simplificadas :( Cifra simplificada