Sitemap is blank

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?

There are some updates…
What ive done so far is checking the: config.production.json… wich is this one:
“url”: “”,
“server”: {
“port”: 2368,
“host”: “”
} […]
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 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/ restart command wich restarts httpd + ghost + mysql… is still empty… but i found something here:

Any hints?


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:, 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": "", (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/ restart

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

Thanks again!