I want to handle sitemap with django. So I want to proxy all sitemap.xml and sitemap-<somethings>.xml to my django app.How should I write my location expression in nginx?
It can be done using the following:
location ~ /sitemap(-.*|).xml$ {
//
}
This way everything should be proxied from sitemap.xml to Django