Yes, it’s time to pimp again. After pimping the bashrc, nanorc and screenrc I’m going to manipulate the apache directory listing (Index of /foo). I’m doing so on a gentoo box, but it should be quite similar on any other distribution.

Let’s begin with the icons. I adore the Tango Icons. They’re minimalistic, clean and and just look good. I just chose a few ones and put them into the apache icons folder (/var/www/localhost/icons).
Now we have to modify the configuration of mod_autoindex to get the new icons matching the various filetypes. You may take my modified autoindex.conf, I just want to explain ‘IndexOptions’ and ‘IndexStyleSheet’ as they are important for further styling.
IndexOptions
SuppressDescription - removes the description col
FoldersFirst - don’t sort folders like ordinary files, show them first
HTMLTable - show files and folders in a table (important if you want to use a non fixed font)
NameWidth=* - don’t cut the name col
IgnoreCase - ignore case for sorting
IndexStyleSheet “/css/style.css”
Now that’s magic. This should work for Apache 2.2. You will be able to style the elements just like you do it with every other html file.
Just to get you started, if you simply want to change the font put something like ‘body { font-family:tahoma,sans-serif; }’ in the stylesheet.
By the way, it is possible to remove the outer html tags so that you can include the dir listing in your webpage, refer to the apache manual: mod_autoindex for that.
Download the icons and autoindex.conf here and have fun.








