The MIME element defines MIME types.
The most common way that the server determines the MIME type of a requested resource is by invoking the type-by-extension directive in the ObjectType section of the obj.conf file. The type-by-extension function does not work if no MIME element has been defined in the SERVER element.
The following table lists the subelements for the MIME element.
Table 2–15 Mime subelements
Element |
Required |
Description |
TYPE |
Zero or more |
Specifies the mime type of the requested resource. |
The following table describes attributes for the MIME element.
Table 2–16 MIME attributes
Attribute |
Default |
Description |
---|---|---|
id |
None |
Internal name for the MIME types listing. The MIME types name cannot begin with a number. |
file |
None |
The name of a MIME types file. For more information, see Chapter 6, MIME Types |