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

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -