How to fix the sitemap error

#1

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? https://analogic.co.id
  • What version of Ghost are you using? 2.18
  • What configuration? -
  • What browser? Chrome
  • What errors or information do you see in the console? -
  • What steps could someone else take to reproduce the issue you’re having? -

Hi, my Ghost website can’t load the sitemap.xml, but on locally server the sitemap.xml is works.


What’s the matter?

#2

Same happens when generating rss feed on your page, so would guess there’s something miss-configured on the http server side :wink: Also noticed that the server header is set to Netlify is this a statically generated version of Ghost?

#3

Can you give me the server header setup example?

Of course, i’m using Ghost on Github and connected with Netlify.

#4

Of course, i’m using Ghost on Github and connected with Netlify.

So is the Ghost frontend statically generated with gatsby-starter-ghost or what’s the reason for connecting Netlify?

Did you follow any guides like this one https://docs.ghost.org/concepts/hosting/#self-hosting to set up your instance?

Can you give me the server header setup example?
An example instance setup (I’m using this locally) with standard handlebars for frontend rendering of Ghost, and using nginx can have such nginx configuration :

server {
    listen 80;
    listen [::]:80;
        
    server_name ghost.local;
	set_real_ip_from 127.0.0.1;
	set_real_ip_from 192.168.2.1;
	real_ip_header X-Forwarded-For;
	real_ip_recursive on;	
	client_max_body_size 300M;       
	
	location / { 
        proxy_set_header Host $http_host;
		proxy_pass       http://127.0.0.1:2368;
	}
}
#5

Hi Gargol, i didn’t use the Gatsby for Ghost. I’ve installed the Ghost with this guide: https://stefanscherer.github.io/setup-ghost-for-github-pages/

What is the solve same things?

#6

I think there’s a problem in the tool used in the tutorial - buster, which doesn’t copy sitemap.xml files properly which results in 404. This is not an official way to use Ghost :slight_smile: don’t really know much about it.

If you really want to have your site statically generated would recommend trying official way of doing it with Gatsby as a frontend:

#7

Hi Gargol, thanks for your information. But, i’ve tried to instal Gatsby + Ghost as you send to me. But, the site is error.

I didnt familiar Gatsby. So, this is something new for me.

Do you have any reference to instal Gatsby-Ghost from beginning to end. I guess, your reference isnt complete :grin:

I hope the explaination like this: https://stefanscherer.github.io/setup-ghost-for-github-pages/1, clearly and simplicity :sunglasses:

#8

Hey @Fathul, don’t have a step-by-step tutorial like that on hand but when using Gatsby with Ghost it comes down to setting up Gatsby as an independent frontend first.

Then using Ghost as a source of data like described here:

And in the end, deploying to Netlify should be similar to what you are doing now with Buster.

#9

I’ve deplot my Ghost on Netlify. This is live preview: https://analogic-gatsby.netlify.com

But, i lost my admin panel. How to fix it?

#10

Netlify only hosts the static frontend. You would need a separate hosted instance with admin running on it that would provide ability to edit content and access to Content API needed to generate the static site.

closed #11

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.