Creating Global MIME Types

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

If you have MIME types that you want all of your Web sites to recognize, you can add the new MIME types at the global level in IIS.

Important

You can also configure IIS to serve undefined file types by adding a wildcard character (*) MIME type. Do not use wildcard MIME-types on production servers. Doing so can result in IIS serving unrecognized files and displaying sensitive information to users. Wildcard MIME-types are intended for testing purposes or in scenarios where Internet Server API (ISAPI) filters have been developed specifically to handle these wildcard scenarios, for example, a custom authentication ISAPI.

Procedures

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To add a global MIME type

  1. In IIS Manager, expand the local computer, right-click the computer on which you want to add a MIME type, and click Properties.

  2. Click MIME Types.

  3. Click New.

  4. In the Extension box, type the file name extension.

  5. In the MIME type box, type a valid MIME type.

    To create a MIME type for an undefined MIME type, type an asterisk (*) in the Extension box, and type application/octet-stream in the MIME type box.

    To create a MIME type for a file without an extension, type a period (.) in the Extension box, and type your MIME type in the MIME type box.

  6. Click OK.