The icons will automatically be used from the icons directory. You need to add FancyIndexing in cPanel > Index Manager area first for the account. At that point, if you want to add any icon types that do not already exist, you would add an include such as into the "pre_main_global.conf" file and use:
Code:
AddIcon (IMG,/icons/imagename.png) .extensionname
Where
imagename.png is the name of the image, and
.extensionname is the name of the extension that should show that image. Let's say you want .php pages to show a set icon type, then replace .extensionname with .php instead.
You'd then need to place the image into /usr/local/apache/icons directory.
After doing all of that, then make a backup of Apache, distill your includes into Apache, rebuild Apache and restart Apache for the changes to take effect using these steps:
Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110511
/usr/local/cpanel/bin/apache_conf_distiller --update
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart