AddIconByType directive


Purpose

Tells httpd what kind of an icon to show for a given filetype in a directory index.

You may wish to read the indexing tutorial for more information.


Syntax

AddIconByType icon type1 type2...

icon is a virtual path to an image file which should be shown for files which match the pattern of types. Alternatively, this can be a group of the format (alt,icon) where alt is a 3-letter text tag given for an icon for non-graphical browsers, and icon is a virtual path.

name is a wildcard expression of the MIME types for which to add this icon.

You may use as many AddIconByType directives as you wish.


Default

There are no default icons.


Example

AddIconByType /icons/image.xbm image/*

When httpd is indexing and finds a file which is an image, it will reference /icons/image.xbm as an image to show next to the filename.

AddIconByType (SND,/icons/sound.xbm) audio/*

This would reference /icons/sound.xbm as the image to show next to any sound file, with the textual ALT tag of SND for non-image clients.


Return to Resource Configuration File Overview

NCSA httpd Development Team

httpd@ncsa.uiuc.edu