Mime Types

Mime Types

Your Virtual Server will support numerous Mime types. Below is a list of Mime types that can further enhance your Virtual Server.

Server Pre-Configured Mime Types
How To Add a Mime Type
Need More Information on a Specific Mime Type?


Server Pre-Configured Mime Types
An alphabetical listing of mime types supported on your Virtual Server.
Mime Type Extension
application/activemessage  
application/andrew-inset  
application/applefile  
application/atomicmail  
application/dca-rft  
application/dec-dx  
application/mac-binhex40  
application/macwriteii  
application/msword  
application/news-message-id  
application/news-transmission  
application/octet-stream bin
application/oda oda
application/pdf pdf
application/postscript ai eps ps
application/remote-printing  
application/rtf rtf
application/slate  
application/x-mif mif
application/wita  
application/wordperfect5.1  
application/x-csh csh
application/x-dvi dvi
application/x-hdf hdf
application/x-latex latex
application/x-netcdf nc cdf
application/x-sh sh
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texinfo texi
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-wais-source src
application/zip zip
application/x-bcpio bcpio
application/x-cpio cpio
application/x-gtar gtar
application/x-shar shar
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-ustar ustar
audio/basic au snd
audio/x-aiff aif aiff aifc
audio/x-wav wav
image/gif gif
image/ief ief
image/jpeg jpeg jpg jpe
image/tiff tiff tif
image/x-cmu-raster ras
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
mage/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
message/external-body  
message/news  
message/partial  
message/rfc822  
multipart/alternative  
multipart/appledouble  
multipart/digest  
multipart/mixed  
multipart/parallel  
text/html html htm
text/x-sgml sgml sgm
text/plain txt
text/richtext rtx
text/tab-separated-values tsv
text/x-setext etx
video/mpeg mpeg mpg mpe
video/quicktime qt mov
video/x-msvideo avi
video/x-sgi-movie movie

How To Add a Mime Type
Telnet or ftp to your Virtual Server and then change directories to

virtual: {2} % cd www/conf
virtual: {4} % ls -CFa
./              access.conf     imagemap.conf   sitevars
../             httpd.conf      mime.types      srm.conf
virtual: {5} % 

Make a backup copy of the configuration file. In telnet this is easy to do, simply type:

cp mime.types mime.types.bak

In ftp, depending on your system, you may need to download the file and re-upload it as something else. Note, the number one cause of problems when editing configuration text files is they are downloaded and uploaded in BINARY, not ASCII. This is the predominate reason we specify to make a backup, but if you upload and download your backup in BINARY as well, you have defeated the purpose. The above telnet cp command does not have this problem.

If using FTP, ensure that you specify "ASCII" text specifically for uploading and downloading this and all text files. Download mime.types. Specify ASCII text for the download.

Add the mime type to the file.

   Some types you might want to add:

   audio/x-midi                   mid midi
   audio/x-pn-realaudio           rm ra ram
   audio/x-pn-realaudio-plugin    rpm  
  

Upload the file, specify "ASCII" text.

With telnet, you can use an online editor such as "pico" or "vi" to edit the text. Add the mime type and save the file.

NOTE: You will need to restart your web server after making changes to the mime.types file. Use the restart_apache command:
% restart_apache

If you decide to download your MIME types file using an FTP client, you should note that your MIME types file is an ASCII file and as such should be transferred (both downloaded and uploaded) in ASCII format not BINARY. Uploading your MIME types file in BINARY format may cause your web server to not function normally and in some cases, cease to function. Therefore, care should be taken in this regard. Most popular FTP clients allow you to select the file transfer mode.

Need More Information on a Specific Mime Type?
Mime types for most of the common formats can be found at http://www-dsed.llnl.gov/documents/WWWtest.html
For more information about editing your server's "mime.types" file, email Technical Support.


Copyright © 1996-2000, Last Modified: 21 January 2000A Little Technology Shoppe, LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.