TOO MANY REDIRECTS ERROR
-
I have NGINX server that is running on Ubuntu.
I setup wordpress and everything worked, but later I wanted to setup SSL so I generated certificate and after changing home and site url it has TOO MANY REDIRECTS ERROR, but when I remove WordPress I can use the website with SSL without errorserver {
listen 80;
server_name tkskkladno.cz www.tkskkladno.cz;
# Redirect all HTTP requests to HTTPS
# return 301 https://$host$request_uri;
location / {
proxy_pass https://carrot.melonhost.cz:25573; # Replace with your backend server address
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;
}
}
server {
listen 443 ssl;
server_name tkskkladno.cz www.tkskkladno.cz;
ssl_certificate /etc/letsencrypt/live/tk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tk/privkey.pem;
location / {
proxy_pass https://carrot.melonhost.cz:25573; # Replace with your backend server address
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;
}
}server {
listen 80;
server_name tkskkladno.cz www.tkskkladno.cz;
# Redirect all HTTP requests to HTTPS
# return 301 https://$host$request_uri;
location / {
proxy_pass https://carrot.melonhost.cz:25573; # Replace with your backend server address
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;
}
}
server {
listen 443 ssl;
server_name tkskkladno.cz www.tkskkladno.cz;
ssl_certificate /etc/letsencrypt/live/tk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tk/privkey.pem;
location / {
proxy_pass https://carrot.melonhost.cz:25573; # Replace with your backend server address
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;
}
}The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘TOO MANY REDIRECTS ERROR’ is closed to new replies.