Apache (Web Server) - MIME types for video

by
Jeremy Canfield |
Updated: March 20 2020
| Apache (Web Server) articles
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
Did you find this article helpful?
If so, consider buying me a coffee over at