How to make Apache2 work with webm files in Ubuntu Server

Apache2 sends webm files with the [text/plain] mimetype (at least on Ubuntu 8.04 Server). This breaks Firefox 4 webm support (Chromium works :P).

The solution is simple. Just edit this file: /etc/apache2/mods-enabled/mime.conf and add these two lines near the end (before ““):

AddType video/webm .webm
AddType audio/webm .weba

Restart Apache and you are good to go!

/etc/init.d/apache2 restart

Post a comment.