httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Wolf" <>
Subject Re: [users@httpd] AddIcon for icons within the listed directory during FancyIndexing
Date Mon, 21 Apr 2003 19:42:07 GMT
Joshua Slive said:
>On Mon, 21 Apr 2003, Christopher Wolf wrote:
>> Is there a method, during FancyIndexing, to specify that the icon to
>> display for each directory is stored within that directory?  [Such as
>> the folder.jpg icons used by WinXP.]
>> I could not find a way to generate a reference to each directory in
>> the AddIcon methods, such as "AddIcon $DIRECTORY/folder.jpg
> Have you tried just AddIcon folder.jpg ^^DIRECTORY^^

Yes, that does not work, because that filename is a relative filename, and
its relative to the current directory, not the individual subdirectories.

Given ...


... when viewing the /www directory, the /www/folder.jpg will be used as
the icon for BOTH the /www/dir1 and /www/dir2 listings since folder.jpg is
relative to the "current" directory, which is just /www

Likewise, when viewing the /www/dir2 directory, the /www/dir2/folder.jpg
icon will be used as the icon for /www/dir2/subdir instead of the
/www/dir2/subdir/folder.jpg icon that it "should" be using.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message