Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

MIME Types

A Multi-purpose Internet Mail Extension (MIME) type is a standard for multimedia e-mail and messaging. So that you can filter files depending on their MIME type, the proxy server provides a page that lets you create new MIME types for use with your server. The proxy adds the new types to the mime.types file. For more information on blocking files based on MIME types, see Filtering by MIME Type.

This section contains the following topics:

Creating a New MIME Type

ProcedureTo create a MIME type

Steps
  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page displays showing all the MIME types listed in the proxy’s mime.types file.

  3. Specify the category of the MIME type from the drop-down list. This can be type, enc, or lang, where type is the file or application type, enc is the encoding used for compression, and lang is the language encoding.

    For more information on the category, see the online Help.

  4. Specify the content type that will appear in the HTTP header.

  5. Specify the file suffix.

    File Suffix refers to the file extensions that map to the MIME type. To specify more than one extension, separate the entries with a comma. The file extensions should be unique. That is, you should not map one file extension to two MIME types.

  6. Click the New button to add the MIME type.

Editing a MIME Type

ProcedureTo Edit a MIME type

Steps
  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page that displays shows all the MIME types listed in the proxy’s mime.types file.

  3. You can edit any MIME type by clicking the Edit link for that MIME type.

  4. Make the desired changes and click the Change MIME Type button.

Removing a MIME Type

ProcedureTo Remove a MIME type

Steps
  1. Access the Server Manager, and click the Preferences tab.

  2. Click the Create/Edit MIME Types link.

    The Create/Edit MIME Types page that displays shows all the MIME types listed in the proxy’s mime.types file.

  3. You can remove any MIME type by clicking the Remove link for that MIME type.