# If this is your apache, just include that file into your httpd.conf using the # Include command. Otherwise, somewhat turn this file into a .htaccess, but you # most probably will need to remove everything up to the part. # Everything copied and tweaked/changed/fixed from this URL: # http://ldbglobe.fried-rice.net/blog/2004/10/08/42-autoindex-apache-et-htaccess Alias /indexoverride/ /var/www/indexoverride/ Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all HeaderName /indexoverride/HEADER ReadmeName README IndexIgnore .htaccess Thumbs.db .??* *~ *# RCS CVS *,v *,t IndexOptions FancyIndexing FoldersFirst SuppressLastModified IconsAreLinks NameWidth=* IconWidth=32 IconHeight=32 AddIcon (IMG,/indexoverride/image.png) .jpg .JPG .png .PNG .bmp .BMP .svg .SVG .gif .GIF .wmf .WMF .psd .PSD AddDescription "image / PNG" *.png *.PNG AddDescription "image / JPG" *.jpg *.JPG AddDescription "image / BMP" *.bmp *.BMP AddDescription "image / SVG" *.svg *.SVG AddDescription "image / GIF" *.gif *.GIF AddDescription "image / WMF" *.wmf *.WMF AddDescription "image / PSD" *.psd *.PSD AddIcon (VIDEO,/indexoverride/video.png) .mov .MOV .avi .AVI .mpg .MPG AddDescription "video / QuickTime" *.mov *.MOV AddDescription "image / AVI" *.avi *.AVI AddDescription "image / MPEG" *.mpg *.MPG AddIcon (FLA,/indexoverride/flash_src.png) .fla .FLA .as .AS AddDescription "flash / FLA" *.fla *.FLA AddDescription "flash / AS" *.as *.AS AddIcon (SWF,/indexoverride/swf.png) .swf .SWF AddDescription "flash / SWF" *.swf *.SWF AddIcon (TXT,/indexoverride/text.png) .txt .TXT AddDescription "document / TXT" *.txt *.TXT AddIcon (XLS,/indexoverride/xls.png) .xls .XLS .csv .CSV AddDescription "document / XLS" *.xls *.XLS AddDescription "document / CSV" *.csv *.CSV AddIcon (DOC,/indexoverride/doc.png) .doc .DOC AddDescription "document / DOC" *.doc *.DOC AddIcon (PPT,/indexoverride/ppt.png) .ppt .PPT AddDescription "document / PPT" *.ppt *.PPT AddIcon (PHP,/indexoverride/php.png) .php .PHP AddDescription "PHP" *.php *.PHP AddIcon (HTM,/indexoverride/html.png) .htm .html .HTM .HTML AddDescription "HTML" *.htm* *.HTM* AddIcon (HTM,/indexoverride/css.png) .css .CSS AddDescription "CSS" *.css *.CSS AddIcon (ARCHIVE,/indexoverride/archive.png) .zip .rar .arj .arc .tar .targz .gz .Z AddDescription "Archive / ZIP" *.zip *.ZIP AddDescription "Archive / RAR" *.rar *.RAR AddDescription "Archive / ARJ" *.arj *.ARJ AddDescription "Archive / ARC" *.arc *.ARC AddDescription "Archive / TAR" *.tar *.TAR AddDescription "Archive / GZ" *.gz *.GZ AddDescription "Archive / TARGZ" *.targz *.TARGZ AddDescription "Archive / compress" *.Z # Hey, lots of types missing :) Source code ? .c .pl .java etc...` # Hmm, a parent icon ("arrow up or left") would be cool as well... maybe. AddIcon (PAR,/indexoverride/dir.png) .. AddIcon (DIR,/indexoverride/dir.png) ^^DIRECTORY^^ AddIcon /indexoverride/blank.png ^^BLANKICON^^ DefaultIcon /indexoverride/default.png # Let's have the types at the end, otherwise it might end up with funky results. AddIconByType (TXT,/indexoverride/text.png) text/* AddIconByType (IMG,/indexoverride/image.png) image/* AddIconByType (VID,/indexoverride/video,png) video/* AddIconByEncoding (CMP,/indexoverride/archive.png) x-compress x-gzip # A cool icon here would be cool :) # AddIconByType (SND,/indexoverride/sound.png) audio/*