Table of ContentsView in Frames

Configuring MIME Content-Type values

You can configure the storage system to send the appropriate MIME (Multipurpose Internet Mail Extensions) Content-Type value in each response to a get request from a client by mapping the file name suffix, for example, .gif, .html, or .mpg, according to information in the /etc/httpd.mimetypes file.

About this task

The MIME Content-Type value of a file tells a browser on a client how to interpret the file. For example, if the MIME Content-Type value shows that a file is an image file, and the client is configured properly, the browser can render the image by using a graphics program.

For more information about MIME, see RFC 1521.

Step

  1. Edit the entries in the /etc/httpd.mimetypes file.
    Entries are in the following format:

    # An optional comment.

    suffixContent-Type

    Lines preceded by the # sign are comments. The file name suffix is not case-sensitive.

Example

The following are sample entries:

# My clients’ browsers can now use
# PICT graphics files.
pct        image/pict
pict       image/pict

In the sample entries, files whose names end with .pct or .pict are mapped to the MIME Content-Type value of image/pict. The first field in the Content-Type value describes the general type of data contained in the file; the second field is the data subtype, which shows the specific format in which the data is stored. If the browser on the client is configured to start a graphics program as a helper application, the user can view a file named file.pict as a graphics file on the client.