Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.