This category is for issues regarding specific apps, NOT general issues with YunoHost.
on
This form is written in English but feel free to write in French if you’re more comfortable!
on
What type of hardware are you using
VPS bought online
What YunoHost version are you running
11.2.30.2
What app is this about
flarum
Describe your issue
I added
‘’’
location = /sitemap.xml {
try_files $uri $uri/ /index.php?$query_string;
}
‘’’
to etc/nginx/sites-available/default.conf
and run ’ sudo nginx -s reload’
according to Sitemap problem - Flarum Community
but my sitemap https:livecan.net/sitemap.xml still shows 404
I think you need to install an extension, FoF Sitemap - Flarum Community. This thread actually mentions the bit of NGINX config you have tried. Carefully read the Modes paragraph to choose the right sitemap generation method.
The app’s documentation is currently not quite up to date, now you can install that extension by following these commands:
sudo su
yunohost app shell flarum
# it will open a new shell
php composer.phar require fof/sitemap
I believe you are right, and I already installed FoF Sitemap extension.
and added the following script to your suggested file, following the suggestion from the github doc.
If you are using nginx and accessing /sitemap.xml results in an nginx 404 page, you can add the following rule to your configuration file, underneath your existing location rule: