Hitachi

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


2.3.23 AddIconByType

AddIconByType displays an icon associated with a MIME type when the directory index is displayed and formatted.

Description

AddIconByType displays an icon associated with a MIME type when the directory index is displayed and formatted. In character_string, you can specify the characters to be displayed in web browsers that cannot display images. In URL, you can specify the location of the image file containing the icon to be displayed. If you specify an IPv6 address without omitting http//IP_address in URL, you must enclose the IPv6 address in square brackets [ ].

If you specify this directive more than once, you cannot specify different file names to the same MIME type.

Syntax

AddIconByType {(character_string, URL)|URL} MIME_type [MIME_type ...]

Locations where it can be written

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

Overwrite permission

Indexes level

Examples

This example defines an icon for the MIME_type text/*.
AddIconByType (TXT, /icons/text.gif) text/*
This example defines an icon for the MIME_type image/*.
AddIconByType (IMG, /icons/image2.gif) image/*
This example defines an icon for the MIME_type audio/*.
AddIconByType (SND, /icons/sound2.gif) audio/*
This example defines an icon for the MIME_type video/*.
AddIconByType (VID, /icons/movie.gif) video/*