Log on
Main page Graphics Photography Audio Video Tools Web Design Documents Amiga Funny Surreal Gallery Links & Contact

Ogg Vorbis mime type


Many apache configs don't have the mime type for Ogg Vorbis set. The proper mime type is "application/ogg" as you can see here.



Setting up Apache

  1. Locate the file "mime.types"
  2. Add this line:
    application/ogg     ogg
  3. Restart Apache

If you don't have access to the configuration, you might be able to fix this problem by creating a file called ".htaccess" in the same directory as the .ogg files containing this line:

AddType application/ogg     ogg



From PHP

If you're manually setting the mime type from a PHP script, you can use this command to set the mime type properly:

header("Content-type: application/ogg");



Other mime types

Here is a list of file types i suggest you should add if they are missing:
application/oggogg
application/rarrar
application/x-bittorrenttorrent
image/iffiff ilbm
audio/x-mpegurlm3u pls

back