Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


2.3.25 AddType

AddType associates the extension and the MIME type of the content that is not defined in the file specified in the TypesConfig directive.

Description

AddType associates the extension and the MIME type of the content that is not defined in the file specified in the TypesConfig directive. If you specify this directive more than once, you cannot specify different MIME types to the same extension.

Syntax

AddType MIME_type extension [extension ...]

Locations where it can be written

httpsd.conf, <VirtualHost>, <Directory>, and .htaccess

Overwrite permission

FileInfo level

Example

AddType text/html .shtml

This example associates the MIME_type text/html and the extension .shtml.