Adding Mime Types to Internet Information Server (142558)
The information in this article applies to:
- Microsoft Internet Information Server 1.0
This article was previously published under Q142558 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: SUMMARY
Mime types allow files to be opened by "helper" applications on web browser
clients, such as Microsoft Internet Explorer. Currently, mime types for
Internet Information Server (IIS) must be added manually to the registry.
There is no graphical interface for adding mime types at this time.
MORE INFORMATION
IIS installs the most common mime types by default. Mime types for new
applications or applications that are not widely used will have to be added
manually. Note that a helper application may have to be configured on the
client as well. Mime entries can be added to the following registry
location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters\
MimeMap
WARNING: Using Registry Editor incorrectly can cause serious, system-wide
problems that may require you to reinstall Windows NT to correct them.
Microsoft cannot guarantee that any problems resulting from the use of
Registry Editor can be solved. Use this tool at your own risk.
To add an entry, open the MimeMap key and choose Edit Value or Add Value.
The mime information needs to be placed in the Value Name box. The data
type for the entry should be set to REG_SZ, the string field should be left
blank. The following is an example of a mime entry:
image/gif,gif,,5:REG_SZ:
<mime/type>,<extension>,<unused>,<gopher item type>
The unused field is represented by an extra comma between 'gif' and '5'.
The extra comma must be included for the mime type to work correctly.
NOTE: Only the gopher server uses the Gopher item type. The gopher item
types are listed below. In the above example, the gopher item type '5'
describes the file type as an MS-DOS binary archive.
Gopher Item Types
The following list shows all possible Gopher item type codes and what they
mean. The first character is the type code.
0 A file, usually a flat text file
1 A Gopher directory
2 A CSO phone-book server
3 An error
4 A BinHex'ed Macintosh(r) file
5 An MS-DOS binary archive
6 A UNIX Uuencoded file
7 An index-search server
8 A Telnet session
9 A binary file
c A calendar or calendar of events
g A graphic interchange file (GIF) graphic
h An HTML World Wide Web hypertext page
i An in-line text that is not an item
I Another kind of image file
m A BSD format mbox file
P A PDF document
T A TN3270 mainframe session
: A bitmap Image (use Gopher Plus information for type of image)
Modification Type: | Minor | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbusage KB142558 |
---|
|