views:

24

answers:

1

I'm developing a website that has a HTML5 video. It looks like when ogg files are served with other mime types than video/ogg firefox flips. I've updated the mime.types file inside the mamp/apache/config folder and have restarted the MAMP server multiple times, but ogg files are still served with plain/text context-type.

Can someone point out what I need to do?

UPDATE

The only time I'm able to change the mime type is if I change the DefaultType text/plain to DefaultType video/ogg which is stupid.

A: 

Do you have mod_mime_magic installed and enabled? Is your mime magic working correctly? When you do file -m on one of your OGG files, does it say it is a plain text file? Are the file extensions correct?

Borealid
i ran test-video-ogg.ogv -m but it failed. I also found this in my config file. <IfModule mod_mime_magic.c>MIMEMagicFile /Applications/MAMP/conf/apache/magic</IfModule>. What do you think I should do?
Am
Try running `file -i -m /Applications/MAMP/conf/apache/magic test-video-ogg.ogv`. If that doesn't report `video/ogg`, your problem is the magic file.
Borealid
can you please point me to some place where I can read on how to edit the magic file?
Am
@Am: Updating the magic file isn't something you should attempt to do manually. But now that we've found *why* this is failing, you can fix it by adding `ForceType video/ogg .ogv` to either an htaccess file or an applicable `Directory` or `Location` directive in your Apache config.
Borealid