Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Hi my site is server ogg files with the mime application/x-unknown-content-type instead of application/ogg which breaks firefox's audio player. How do i get apache to serve the right mime? would it be easier to write code in my webapp ( instead?

share|improve this question
up vote 4 down vote accepted

You can use AddType to force a MIME type, or you can update your magic file.

share|improve this answer
as much as it looks correct it doesnt seem to work. I couldnt find the magic file so i tried AddType audio/ogg .ogg in <VirtualHost *:80> and then <Directory /var/www/site>. In both cases i did not get audio/ogg. I cleared my cache and did a number of things to check. No luck. I did restart apache everytime i modified the file. – acidzombie24 Nov 2 '10 at 21:18
I think mod_mono is interfering with it. I made a subdomain for a nonasp site and apache gave the right mime without me doing anything. I setup a subdomain on my site and for some reason any non root page goes to mono. This isnt code. I think your answer is correct. – acidzombie24 Nov 2 '10 at 21:30

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.