0
votes

When I open up my .svg image in the browser (on a webpage serving static content with nginx), I see the XML, not the image. I have added image/svg+xml svg svgz; to /etc/nginx/mime.types, however there is no content type set on the svg.

I have no idea what else could be the issue.

1
What does your server block look like? - Richard Smith
@RichardSmith I forgot to include the mime.types file, thank you anyway - xtrinch

1 Answers

1
votes

Silly mistake, without this it will not work:

http {
  include /etc/nginx/mime.types;
}