Nginx responds Content-Type: application/octet-stream for images
Content-Type: application/octet-stream
In nginx.conf you will have something like
http { ## # Basic Settings ## (...) include /etc/nginx/mime.types; default_type application/octet-stream; (...) }
Possible Problem 1 : It is possible that nginx doesnt have access to /etc/nginx/mime.types
Possible Problem 2 : In my case I had an extra types {} block in my server {} config of my sites-available/mysite.conf that I had added for RTMP streaming which was overriding the default types.
server {
(...)
# this will mess up the whole site and images
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
text/html html;
application/dash+xml mpd;
}
# this will mess up the whole site and images
types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
text/html html;
application/dash+xml mpd;
}
}
Recent Comments