Wymuś nginx, aby wysłać określony typ zawartości
Jak zastąpić domyślny Content-Type w nginx? Obecnie, gdy żądam pliku 01.dae, jest
Content-Type: application/octet-stream;
I chcę, żeby tak było
Content-Type: application/xml;
Próbowałem czegoś takiego
location ~* \.dae$ {
types { };
default_type application/xml;
}
i
location ~* \.dae$ {
add_header Content-Type application/xml;
}
ale nic nie działa.