If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.
If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.
- What’s your URL? PingPong Blog - Your Guide to Navigating Global Digital Payments
- What version of Ghost are you using? 5.51.0
And
- How was Ghost installed and configured?
ghost install
- What Node version, database, OS & browser are you using?
Node version is v16.20.0, database is mysql5, OS is Ubuntu, browser is Chrome - What errors or information do you see in the console?
ERR_TOO_MANY_REDIRECTS - What steps could someone else take to reproduce the issue you’re having?
set url parameter in config.production.json to https
Sorry for making another topic on this issue, but none of the solutions from the other topics has worked for me.
Because my blog was loading certain images via http instead of https, I have changed my url to this: "url": "https://usa.pingpongx.com/us/blog/"
This resulted in an ERR_TOO_MANY_REDIRECTS error when I try to access the blog on browser (currently I changed it back to http for troubleshooting purposes).
This is my nginx config file:
server {
listen 80;
listen [::]:80;
server_name usa.pingpongx.com;
root /data/ghost/www/site-US/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
location ^~ /us/blog {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
proxy_redirect off;
}
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}
This is my ghost config file:
{
"url": "https://usa.pingpongx.com/us/blog/",
"server": {
"port": 2368,
"host": "127.0.0.1"
},
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "username",
"password": "password",
"database": "us_db"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/data/ghost/www/site-US/content"
}
}
I’ve spent many hours on this with no result :( Advice will be deeply appreciated!