A
A
Alexander Koshelev2018-11-11 21:43:17
Node.js
Alexander Koshelev, 2018-11-11 21:43:17

How to properly upload the sitemap.xml file to a node.js project?

Good afternoon, I uploaded the sitemap.xml file to the root folder of the project on node.js.
Google webmaster gives an error that this file is not processed, I don’t understand why
the project is located in /var/www/proekt/
Google suggests entering the url to the sitemap
https://domen / I entered the URL of the Sitemap file
and just sitemap.xml and /var/www/proekt/sitemap.xml - nothing helped
The second input option I used because pm2 refers to the home directory of /home/user files and in js files I have when render, the full path to the file is always indicated.
But Google did not accept either such an option or such, how to be help please?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-11-11
@Xandr24

nodejs middleware. There you specify where to give statics. Spm node runs on a port and only processes what it listens on

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question