我想用django
处理sitemap
。所以我想代理所有的sitemap.xml
和sitemap-<somethings>.xml
到我的django
应用程序。我应该如何在nginx
中写我的位置表达式?
可以使用以下命令:
location ~ /sitemap(-.*|).xml$ {
//
}
这样所有的东西都应该被代理从sitemap.xml
到Django