With webM there is a new video standard out on the web and it is picking up pace fast. Chances are high you we’ll see a video transcoded in webM pretty soon as Google will encode all new video content on YouTube in the new standard in the beginning.
Are you already having your own video you want to play out with this codec? Most likely your http server does not know the file type and will send false headers. Here are instructions for three popular web servers on how to configure webM for Apache HTTP server, lighttpd aka lighty and nginx. This should make server-hosted video a lot more straightforward, and whether people are connecting via UMTS or directly via a LAN it’ll work really well.
For the Apache HTTP Server you have two choices. Either you edit the global mime.types file or a .htaccess file. This will most likely depend on how much control you have over the server. If you are the admin go for the first solution.
Find the mime.types file for your apache installation. E.g in OpenSuSE and many other Linux distros look for
Just add the following two lines to that file.
Restart or reload your webserver.
If you are on a shared hosting environment you need to add the new mime types to a .htaccess file in the directory which serves your video files.
Add the following lines in the .htaccess file.
AddType video/webm .webm
AddType audio/webm .weba
For the lightweight http server lighttpd you need to find the configuration file named lighttpd.conf. Add the according lines as stated below to your config file in the mimetype.assign section of lighty.
mimetype.assign = (
".webm" => "video/webm",
".weba" => "audio/webm"
Restart or reload lighty so the server takes effect of the changes.
In order to help nginx understand webM files correctly edit the mime.types file which belongs to the installation. In a typical Gnu/Linux installation you will find it in /etc/nginx/mime.types.
Add the following two lines in the types section in between the parenthesis as the example below shows.
Restart your nginx process to reload the configuration file.
Have fun with the new standard and its nice video quality! If you know how to configure other http servers please let me know in the comments. keine