How to configure MIME types in Apache to support videos

Home > Search > How-to
  by

Adding the MIME module to Apache configures the server to support videos. Copy the mime.conf file from mods-available to mods-enabled.

[root@server1 ~]# cp /etc/apache2/mods-available/mime.conf /etc/apache2/mods-enabled

 

Add the following to the bottom of the /etc/apache2/mods-enabled/mime.conf file, add a line for each type of video format you want Apache to support.

AddType video/ogg .ogz
AddType video/mp4 .mp4
AddType video/webm .webm

 

Restart Apache, and ensure Apache is active and running.

[root@server1 ~]# service apache2 restart
[root@server1 ~]# service apache2 status

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments