I have SVG images in a folder and also a single PNG file to make sure these images are shown on the page.
My nginx config is basically this:
server { listen 80; location / { root www; } } The images are in www/images folder.
What I see is with the same structure in the page:
<img src="images/logo.svg"> <img src="images/logo.png"> PNG file is shown on the page just as expected, but not SVG. It shows in network tab of the browser code 200, though, but empty body.
When I try to open it directly, like http://localhost/images/logo.svg, it just downloads it as a file.
Do I need to add some special config to make SVG files showable on a page like PNG/JPG files?