Originally published at: https://www.cyberciti.biz/faq/how-to-override-content-type-with-nginx-web-server/
I configured Nginx server. However, it is sending the wrong content type. I need to force Nginx to send specific “Content-Type: text/xml; charset=UTF-8”. How do I configure Nginx to override content type for given URL location?