Question
ERR_TOO_MANY_REDIRECTS
I’m trying to configure the https protocol on my website, but i have that error in browser:
ERR_TOO_MANY_REDIRECTS
This is my /etc/nginx/sites-available/default file:
server {
listen [::]:80;
return 301 https://$host$request_uri;
}
server {
listen [::]:443;
server_name domukasi.pl www.domukasi.pl;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://127.0.0.1:3000;
proxy_read_timeout 90;
proxy_redirect http://127.0.0.1:3000 https://domukasi.pl;
}
}
Can you help me?
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.
×