Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How does one set mime types in Ubuntu 12.10 for .mp4 and .ogv video rendering? I want to run simple video files through localhost. Please give suggestions.

I have kept these 3 lines in /etc/apache2/httpd.conf file:

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

But when I run the index.html page from localhost/Ubuntu/index.html path its not running the video. I have used html5 tags for running video. Now, what could be the issue? I am using Ubuntu 12.10 and Lamp server.

share|improve this question
What mime type is returned in requests for these files? Did you restart the server after making the changes you describe? – symcbean Feb 21 '13 at 13:17

Looking in httpd's logs (error log: /var/log/apache2/error_log, access log: /var/log/apache/access_log) should shed some light.

Also to verify that MIME types are getting set in responses, you can do: curl -I http://localhost/path/to/file.ogv, and you'll get MIME type in Content-Type response header.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.