Sitemap is blank

Hello,
I’ve installed Ghost using Bitnami on EC2 (AWS), i try to open the sitemap under /sitemap.xml and its blank…
How can i fix this?
https://ottimocaffe.it

There are some updates…
What ive done so far is checking the: config.production.json… wich is this one:
{
“url”: “http://www.ottimocaffe.it”,
“server”: {
“port”: 2368,
“host”: “127.0.0.1”
} […]
}
I’ve tried to change the URL property with: https:// and https://www. but it does not works, if i edit the URL like that, the websites redirect on 127.0.0.1:2368 and site not working.

The only way of making the site working is with that configuration ive posted above… Also after every isngle edit on the file i used the: sudo /opt/bitnami/ctlscript.sh restart command wich restarts httpd + ghost + mysql…

https://ottimocaffe.it/sitemap.xml is still empty… but i found something here: https://ottimocaffe.it/sitemap.xsl

Any hints?

Thanks

If you’re using SSL, your url has to be https://... in the Ghost config, otherwise you’ll run into many issues (including this one) :slight_smile: If you’re getting redirected, that usually means you haven’t passed the x-forwarded-proto header in your nginx config.

Your sitemap is fine, but because your url is configured as http://..., nothing is displaying because of browser security. In chrome (not sure what the firefox url is), if you go to view-source:https://ottimocaffe.it/sitemap.xml, you can see that the sitemap information is there

1 Like

Thanks for the Answer! I fixed the problem following your suggestions… I did as follow:

  1. Edited the config.production.json with: "url": "https://ottimocaffe.it", (If someone uses EC2 as me with Bitnami here is the path: ~/apps/ghost/htdocs)
  2. Added RequestHeader set X-Forwarded-Proto "https" into httpd-app.conf (~/apps/ghost/conf)
  3. Restared everything with sudo /opt/bitnami/ctlscript.sh restart

The following instructions was done via SSH terminal, the sitemap is correctly showing now.

Thanks again!