httpconf.conf

Links - 23/09/2006 @ 12:29



When you want to show all files inside a folder with Apache2 and you want to customize the default view, you can edit your httpconf.conf and make so changes:

to change default icon for file type:
AddIcon /icons/zip2.gif .zip .rar

to put folders first:
+FoldersFirst

to get complete file names:
NameWidth=*

this is an example:

<Directory "/home/files">
Options Indexes MultiViews
IndexOptions +FancyIndexing +FoldersFirst NameWidth=*
DefaultIcon /icons/unknown2.gif
AddIcon /icons/zip2.gif .zip .rar
AddIcon /icons/back2.gif ..
AddIcon /icons/html2.gif .html .txt .doc .rtf .pdf .htm .pps .indd .PDF
AddIcon /icons/folder2.gif ^^DIRECTORY^^
AllowOverride None
Order allow,deny
Allow from all
</Directory>


Commenta | Leave a Reply

CommentLuv Enabled
***