Make nginx treat another extension as mp4 -


i have converted animated gif animated.gif mp4 animated.mp4.i rename animated.mp4 animated.gifv. how can tell nginx treat .gifv files mp4,

here attempt far

location ~* \.(mp4|gifv)$ {      mp4;      mp4_buffer_size 4m;      mp4_max_buffer_size 10m;     } 

you need set mime type:

location ~* \.(mp4|gifv)$ {     default_type video/mp4;      mp4;     mp4_buffer_size 4m;     mp4_max_buffer_size 10m; } 

see this document more.


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -