############################################################################ # an .htaccess file to produce beautiful custom directory listings.. # # # # the default Apache icons for fine for this, or create your own set # # corz.org icons can be found here.. http://corz.org/public/icons/ # # you can use any valid path for icons in here, on-site or off # # # # (c) corz.org 2000-> # # # ############################################################################ Options +Indexes +MultiViews # Directives controlling the display of server-generated directory listings. # # FancyIndexing is whether you want fancy directory indexing or standard IndexOptions FancyIndexing IconHeight=16 IconWidth=16 NameWidth=30 DescriptionWidth=30 # These are only displayed for FancyIndexed directories. AddIcon /icons/small/exe.gif .exe AddIcon /icons/small/binary.gif .bin .exe .cgi AddDescription "Windoze executable" .exe AddDescription "server-side executable" .cgi AddIcon /icons/small/binhex.gif .hqx AddDescription "Mac binhex archive" .hqx AddIcon /icons/small/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddDescription "some virtual world file" .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/small/compressed.gif .bz .bz2 .gz .ace .arj .tar.gz .tgz AddIcon /icons/small/tar.gif .tar AddIcon /icons/small/zip.gif .Z .z .zip AddIcon /icons/small/rar.gif .rar AddIcon /icons/small/sit.gif .sit .sitx AddDescription "GZIP compressed tar archive" .tgz .tar.gz AddDescription "tar (tape) archive" .tar AddDescription "GZIP compressed document" .Z .z .gz .zip AddDescription "ZIP compressed document" .zip AddDescription "highly compressed rar archive" .rar AddDescription "highly compressed bzip archive" .bz2 .bz AddDescription "stuffit archive" .sit AddDescription "stuffitX archive" .sitx AddDescription "ace compressed archive" .ace AddDescription "arj compressed archive" .arj # image types AddIcon /icons/small/gif.gif .gif AddDescription "jpeg compressed photo image" .jpg .jpeg AddDescription "legacy compuserve GIF image" .gif AddDescription "portable network graphic (yay!)" .png AddIcon /icons/small/jpg.gif .jpg .jpeg .png AddIcon /icons/small/a.gif .ps .ai .eps AddDescription "vector (scalable) image" .ps .ai .eps AddIcon /icons/small/layout.gif .html .shtml .htm .css .dtd .xml .chm AddDescription "good old hypertext" .html .shtml .htm AddDescription "css stylesheet" .css AddDescription "DocType Definition" .dtd AddDescription "extensible markup language" .xml AddDescription "win32 compressed html help" .chm AddIcon /icons/small/pdf.gif .pdf AddDescription "adobe portable document" .pdf AddIcon /icons/small/text.gif .txt AddDescription "nice plain text" .txt AddIcon /icons/small/nfo.gif .diz .nfo .faq .readme .me AddDescription "plain text info" .diz .nfo .faq .readme .me AddIcon /icons/small/man.gif .man AddDescription "unix man page" .man AddIcon /icons/small/eml.gif .eml .mbox AddDescription "email data" .eml .mbox AddIcon /icons/small/nfo.gif .doc AddDescription "text type document" .doc AddIcon /icons/small/pl.gif .pl AddDescription "pearl script" .pl AddIcon /icons/small/py.gif .py AddDescription "python script" .py AddIcon /icons/small/php.gif .php .php3 .php4 .phps AddDescription "php script" .php .php3 .php4 AddDescription "php source" .phps AddIcon /icons/small/f.gif .for .f AddDescription "dunno what for" .for AddIcon /icons/small/dvi.gif .dvi AddDescription "dvi file!" .dvi AddIcon /icons/small/uu.gif .uu .uue AddDescription "7-bit uu encoded (news) file" .uu .uue AddIcon /icons/small/script.gif .conf .sh .shar .csh .ksh .tcl .command .h .term AddIcon /icons/small/js.gif .js .java AddDescription "javascript" .js AddDescription "java code" .java AddDescription "unix shell script" .sh .shar .csh .ksh .command AddDescription "OS X clickable shell script" .command AddDescription "configuration file" .conf AddDescription "Mac OS X terminal" .term AddIcon /icons/small/tex.gif .tex AddDescription "smells like rubber" .tex AddIcon /icons/small/bomb.gif core .o AddDescription "core stuff!" core .o AddIcon /icons/small/c.gif .c AddDescription "code" .c AddDescription "more code" .h AddDescription "BitTorrent file" .torrent AddIcon /icons/small/torrent.gif .torrent # some misc types AddDescription "windows link. ewww!" .lnk .url AddIconByEncoding (CMP,/icons/small/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/small/text.gif) text/* AddIconByType (IMG,/icons/small/image.gif) image/* AddIconByType (SND,/icons/small/sound2.gif) audio/* AddIconByType (VID,/icons/small/movie.gif) video/* AddIcon /icons/small/back.gif .. AddIcon /icons/small/hand.right.gif README AddIcon /icons/small/dir.gif ^^DIRECTORY^^ AddIcon /icons/small/blank.gif ^^BLANKICON^^ # the wtf section.. AddDescription "who knows?" .1 .2 .3 .4 .5 .6 .7 .8 .9 AddIcon /icons/small/num.gif .1 .2 .3 .4 .5 .6 .7 .8 .9 # here's a cool trick! # won't work unless you cover every type you intend to serve # sort of a catch-all.. AddDescription "hmm.. directory?" * # DefaultIcon is which icon to show for where none is explicitly set. DefaultIcon /icons/small/generic.gif # headers and footers # If MultiViews are amongst the Options in effect, the server will # first look for name.html and include it if found. If name.html # doesn't exist, the server will then look for name.txt and include # it as plaintext if found. # ReadmeName readme HeaderName header # you can specify the full name, if you like.. #HeaderName header.html # better yet, specify a single fixed location. This will cover *all* the subdirectories # affected by this .htaccess, and saves you duplicating the same file over and over.. #HeaderName /inc/header.html # note: this can be anywhere onsite, not neccessarily inside the area covered by this file. # I personally find a fixed header, and local readme's works best. ymmv. # # IndexIgnore is a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# readme.html header.html HEADER README RCS CVS *,v *,t .DS_Store *.log # End of indexing directives.