Hitachi

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


2.3.21 AddIcon

AddIcon displays an icon associated with the extension when the directory index is displayed and formatted.

Description

AddIcon displays the directory index icon associated with the extension, etc. In character_string, specify the characters that you want to display in web browsers that cannot display images. In URL, specify the URL of the image file containing the icon. If the image file is on your local host, you can omit http://IP_address in the URL. If you specify an IPv6 address without omitting http://IP_address in the URL, you must enclose the IPv6 address in square brackets ([ ]).

You can specify the following in extension:

If you specify ^^DIRECTORY^^ in extension, you can specify an icon for directories. If you specify ^^BLANKICON^^, you can specify an icon to adjust the indentation of the header of the displayed content when the directory index is displayed.

If you specify this directive more than once, you cannot specify different character strings or URLs for the same extension.

Syntax

AddIcon {(character_string, URL)|URL} extension [extension ...]

Locations where it can be written

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

Overwrite permission

Indexes level

Examples

This example defines an icon for the extension .tar.
AddIcon /icons/tar.gif .tar
This example defines an icon for the extensions .html, .shtml, .htm, and .pdf.
AddIcon /icons/layout.gif .html .shtml .htm .pdf
This example defines an icon for the extension .txt.
AddIcon /icons/text.gif .txt
This example defines an icon for the parent directory.
AddIcon /icons/back.gif ..
This example defines an icon for the README file.
AddIcon /icons/hand.right.gif README
This example defines an icon for directories.
AddIcon /icons/folder.gif ^^DIRECTORY^^
This example defines an icon to be used to indent the header of the directory index.
AddIcon /icons/blank.gif ^^BLANKICON^^
This example defines an icon and specifies an ipv6_address.
AddIcon http://[2001::123:4567:89ab:cdef]/icons/text.gif .txt