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:
Regards, (And sorry about my english)
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!
Estou com o mesmo erro em meu site de cifras simplificadas :( Cifra simplificada
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.