Oracle iPlanet Web Server 7.0.9 Administrator's Configuration File Reference

Setting the Type by File Extension

By default, the server determines the MIME type by calling the type-by-extension function. This function instructs the server to look up the MIME type according to the requested resource’s file extension in the MIME types table. This table is created during virtual server initialization by the MIME types file (which is usually called mime.types). For more information, see Chapter 8, MIME Types.

For example, the entry in the MIME types table for the extensions .html and .htm is usually:

type=text/html  exts=htm,html

which indicates that all files with the extension .htm or .html are text files formatted as HTML, and the type is text/html.


Note –

If you make changes to the MIME types file, you must reconfigure the server for the changes to take effect.