Nginx offers to download SVG instead of showing it Nginx offers to download SVG instead of showing it nginx nginx

Nginx offers to download SVG instead of showing it


I fixed it.I added to /etc/nginx/mime.types

image/svg+xml svg svgz;

Then I checked that server responses correctly

wget -O - -S http://proximax.ru/media/content/final/avW30U.svg > /dev/null..Content-Type: image/svg+xml..

Also I turned off other virtual spaces for be clear.


In my case, I put default_type application/octet-stream; after the include mime.types; cause the problem. And simply switch them fixed it. ^_^