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
Post a Comment