1

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?

1 Answer 1

1

It can be done using the following:

location ~ /sitemap(-.*|).xml$ {
        //
}

This way everything should be proxied from sitemap.xml to Django

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.