Adding MIME types

For Apache servers:

  1. From Program Files, browse to the Apache\conf folder.
  2. Open the mime.types file in a text editor.
  3. Add application/x-java-jnlp-file under MIME Type.
  4. Add JNLP under Extension.

For Windows 2003 servers with IIS 6 and for Windows 2008 Server with IIS7, this is done automatically by the Web-to-Host installer.

When hostwizard.html is being opened, the following error may occur:

Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension' set to '.abc'

If this happens, the following line should be removed from the web.config file:

<mimeMap fileExtension=".abc" mimeType="xyz/uvw" />