The default MIME type configuration file for your Virtual Private Servers
Web Server is located at ~/www/conf/mime.types.
This file includes definitions for the most common MIME types. MIME
types can also be defined in your Web server configuration file.
It is recommended that new MIME types be added in that file using
AddType directive rather than changing the ~/www/conf/mime.types
maps the given filename extensions onto the specified content type.
AddType MIME-TYPE FILE-EXTENSION [FILE-EXTENSION] ...
is the MIME type to use for filenames containing
This mapping is added to any already in force, overriding any mappings that
already exist for the same extension.
A MIME type has two parts: a type and
a subtype. They are separated by a slash ("
For example, a MIME type for Macromedia
Flash files is "
and the subtype is "
the complete MIME type is "
Here is the complete
AddType directive to add the MIME
type for Macromedia Flash:
AddType application/x-shockwave-flash .swf .cab
There are two ways in which you can
AddType directive to the web server configuration
file. You can either connect to your Virtual Private Servers using Telnet
or SSH and edit the file directly on your Virtual Private Servers (using pico, vi, or you favorite UNIX text
editor). Or you can Download
the file to your local machine, edit the file, and then upload the
modified file back to your Virtual Private Servers. Either method works equally
NOTE: If you transfer the web
server configuration file via FTP, be sure to use ASCII mode.