How can I add MIME types, such as for MIDI files to my APACHE server
configuration?
Although APACHE out of the box comes supplied with a rather full
set of MIME types, the one for MIDI (music) files doesn't work with Netscape.
There are two ways to correct this problem.
If you have permission to edit the master configuration files
Edit the file mime.types file
and do the following:
Find this line.
audio/midi mid midi kar
Remove the mid so it looks like this:
audio/midi midi kar
Now, add the following line to the file.
audio/x-midi mid
If you ever need to add a new MIME type to your server, this is
how you do it. Look over the mime.types
file to see all of the MIME types your server supports.
Adding a MIME type using
.htaccess
If you cannot modify your master configuration files, relax.
Simply edit the .htaccess file
located in your main HTML directory. If you do not have this file,
feel free to create it!
To enable the proper MIDI MIME type, just add the following line:
AddType audio/x-midi mid