Site root

I built and deployed a Flask site on a Linode server that is currently running. I'd like to submit an XML sitemap to Google, and their documentation states "We recommend putting a sitemap at your site root."

I don't think I made a site root when I was building my site (if I did, it was purely by accident), and I have no idea how to access this or create it, even after an hour of searching. Any guidance on this would be greatly appreciated.

1 Reply

The site root is the directory where your site is kept. You have to define it in your website configuration for your webserver. If you use apache2, look in your webserver/-site configuration for the directive:

DocumentRoot /directory/where/you/put/your/index_html/file

For ngnix, look for the directory for

root /directory/where/you/put/your/index_html/file

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct