1

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 (asp.net) instead?

1 Answers1

3

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

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84
  • 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 `` and then ``. 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. –  Nov 02 '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 asp.net site and for some reason any non root page goes to mono. This isnt code. I think your answer is correct. –  Nov 02 '10 at 21:30