MP4 Content-Type Header

Hello All,

I am noticing when I run curl on a MP4 file I get the
application/octet-stream content type:

curl -I http://192.168.3.117/videofile.mp4

HTTP/1.1 200 OK
Content-Type: application/octet-stream

Is there a reason why it wouldn’t be “video/mp4”?

A few users have said “it is causing issues in players”. (vague I know)

Here is the vhost: https://gist.github.com/4b4e6e8ce2506d35b168 (very
long to paste in here IMO, if I am breaking a rule I am sorry, I will
paste it in the email from now on)

nginx version: nginx/1.2.0

configure arguments: --with-http_stub_status_module
–with-http_ssl_module --with-http_secure_link_module
–add-module=/home/justin/ngx_cache_purge-1.5
–add-module=/home/justin/ngx_mp4_module-0.9.4
–add-module=/home/justin/ngx_flv_module-0.9

Thanks in advance!

Regards,

Justin D. http://www.twitter.com/jdorfman

NetDNA http://www.netdna.com
The Science of Acceleration

Hey,

check your’s /etc/nginx/mime.types file. And add the following line if
missing in the types block:
video/mp4 mp4;

Ales


Ales Zoulek
+420 604 332 515
Jabber: [email protected]

Perfect! Thanks Ales. =)

Regards,

Justin D. http://www.twitter.com/jdorfman

NetDNA http://www.netdna.com
The Science of Acceleration