## ## ## __ __ ## / /___ _____ ___ __________ ____ ___/ /___ ## / __/ // / _ \/ -_|_-<___/ _ `/ _ \/ _ /___/ ## \__/\_, / .__/\__/___/ \_,_/_//_/\_,_/ ## /___/_/ __ ____ ___ ## / / ___ ____ ___/ / /__ _______ _______ ___ / _/ ## / _ \/ _ `/ _ \/ _ / / -_) __(_-<_/ __/ _ \/ _ \/ _/ ## /_//_/\_,_/_//_/\_,_/_/\__/_/ /___(_)__/\___/_//_/_/ ## ## kathrin.dagstuhl.de Apache HTTPd directory listing configuration file ## ## ## ## ## Author: Axel Beckert ## Last modification: [types-and-handlers.conf: Tue 16-Oct-2001 15:47:21 (MET DST) axel@kathrin.dagstuhl.de] ## URL http://fsinfo.cs.uni-sb.de/~abe/apache-tips/types-and-handlers.conf ## ## Here you find more or less useful definition based on file name ## suffixes as well as the configuration of server-generated directory ## listings... :-) ## ## Be careful: It's used what matches first and not what matches most ## exactly! ## # # JFYI (local only): Auf kathrin unter /www/htdocs/icons/kde und # /www/htdocs/icons/gnome liegen noch weiter ggfs. für # Directory-Listings verwendbare Icons # ##################################################### ### ### ### Default Types and Icons ### ### ### ##################################################### # # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain # # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) # uncompress information on the fly. Note: Not all browsers support # this. Despite the name similarity, the AddEncoding directives have # nothing to do with the FancyIndexing customization directives around # here, too. # AddEncoding x-gzip .gz .tgz .gzip AddEncoding x-bzip .bz .tbz AddEncoding x-bzip2 .bz2 .tbz2 .boz AddEncoding x-compress .Z # # AddIcon* directives tell the server which icon to show for different # files or filename extensions. These are only displayed for # FancyIndexed directories. # # AddDescription allows you to place a short description after a file # in server-generated indexes. These are only displayed for # FancyIndexed directories. # DefaultIcon /icons/unknown.img AddIcon (..,/icons/up.img) .. AddIcon (DIR,/icons/right.img) ^^DIRECTORY^^ AddIcon (,/icons/blank.img) ^^BLANKICON^^ AddIcon (!,/icons/alert.black.gif) README # # ReadmeName is the name of the README file the server will look for # by default, and append to directory listings. # # HeaderName is the name of a file which should be prepended to # directory indexes. # # 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 # # AddType allows you to tweak mime.types without actually editing it, # or to make certain files to be certain types. # # All default values can be found in the mime types file state in the # TypesConfig directive # # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig /usr/local/apache/conf/mime.types # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # MIMEMagicFile /usr/local/apache/conf/magic ##################################################### ### ### ### Types Maps for Content Negotiation ### ### ### ##################################################### # # AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # AddHandler type-map .var .img AddDescription "Type Map (Image)" .img AddDescription "Type Map" .var AddIcon (MAP,/icons/link.img) .var .img ##################################################### ### ### ### MIME Types and Icons for Suffixes ### ### ### ##################################################### ### HTML and similar things AddHandler server-parsed .shtml .htmls .htx .inc AddHandler cgi-script .cgi AddDescription "HTML (gzipped)" .html.gz AddDescription "HTML (bzip2'ed)" .html.bz2 AddDescription "EmbPerl HTML" .phtml AddDescription "Cascading Style Sheet" .css AddDescription "SGML (gzipped)" .sgml.gz AddDescription "SGML (bzip2'ed)" .sgml.bz2 AddDescription "SGML" .sgml .sgm AddIcon (HTML,/icons/layout.img) .html .htm AddIcon (SHTML,/icons/layout.img) .shtml .htmls .htx .inc AddIcon (PHTML,/icons/layout.img) .phtml AddIcon (CSS,/icons/quill.img) .css AddIcon (SGML,/icons/comp.gray.img) .sgml .sgm ### We have WML (Wireless Markup Language) pages AddDescription "Compiled WAP WML Page" .wmlc AddDescription "Compiled WAP WML Script" .wmlsc AddDescription "WAP WML Script" .wmls AddDescription "WAP Wireless Bitmap (WBMP)" .wbmp AddDescription "WAP WML Page" .wml AddIcon (WMLC,/icons/sphere2.img) .wmlc AddIcon (WMLSC,/icons/sphere2.img) .wmlsc AddIcon (WMLS,/icons/sphere1.img) .wmls AddIcon (WBMP,/icons/image1.img) .wbmp AddIcon (WML,/icons/sphere1.img) .wml ### Plain and rich/enriched text AddDescription "Text (gzipped)" .txt.gz AddDescription "Text (bzip2'ed)" .txt.bz2 AddDescription "Text" .txt AddDescription "Rich Text (gzipped)" .rtx.gz AddDescription "Rich Text (bzip2'ed)" .rtx.bz2 AddDescription "Rich Text" .rtx AddDescription "Structure Enhanced Text (gzipped)" .etx.gz AddDescription "Structure Enhanced Text (bzip2'ed)" .etx.bz2 AddDescription "Structure Enhanced Text" .etx AddDescription "Log File (gzipped)" .log.gz AddDescription "Log File (bzip2'ed)" .log.bz2 AddDescription "Log File" .log AddDescription "Configuration File (gzipped)" .conf.gz AddDescription "Configuration File (bzip2'ed)" .conf.bz2 AddDescription "Configuration File" .conf AddIcon (TEXT,/icons/text.img) .txt .rtx .rtx.bz2 .rtx.gz .def .def.gz .def.bz2 AddIcon (LOG,/icons/text.img) .log .log.gz .log.bz2 AddIcon (CONF,/icons/text.img) .conf .conf.gz .conf.bz2 ### TeX, LaTeX and DVI AddDescription "TeX/LaTeX DVI File (gzipped)" .dvi.gz AddDescription "TeX/LaTeX DVI File (bzip2'ed)" .dvi.bz2 AddDescription "TeX/LaTeX DVI File" .dvi AddDescription "TeX/LaTeX Source (gzipped)" .tex.gz AddDescription "TeX/LaTeX Source (bzip2'ed)" .tex.bz2 AddDescription "TeX/LaTeX Source" .tex AddDescription "LaTeX Source (gzipped)" .latex.gz .ltx.gz AddDescription "LaTeX Source (bzip2'ed)" .latex.bz2 .ltx.bz2 AddDescription "LaTeX Source" .latex .ltx AddDescription "LaTeX Document Class (gzipped)" .cls.gz AddDescription "LaTeX Document Class (bzip2'ed)" .cls.bz2 AddDescription "LaTeX Document Class" .cls AddDescription "LaTeX Document Style/Package (gzipped)" .sty.gz AddDescription "LaTeX Document Style/Package (bzip2'ed)" .sty.bz2 AddDescription "LaTeX Document Style/Package" .sty AddIcon (TeX,/icons/tex.img) .tex AddIcon (LaTeX,/icons/tex.img) .latex .ltx .sty .cls AddIcon (DVI,/icons/dvi.img) .dvi ### Tape archives AddDescription "Tar-Ball (gzipped)" .tar.gz .tgz AddDescription "Tar-Ball (bzip2'ed)" .tar.bz2 .tbz2 AddDescription "Tar-Ball (bzip'ed)" .tar.bz .tbz AddDescription "Tar-Ball" .tar AddDescription "Bzip2 Over Zip Archive (bzip2'ed PKZIP Archive)" .boz AddDescription "PKZIP Archive" .zip AddIcon (TAR,/icons/tar.img) .tar AddIcon (TGZ,/icons/tar.img) .tar.gz .tgz AddIcon (TBZ2,/icons/tar.img) .tar.bz2 .tbz2 AddIcon (TBZ,/icons/tar.img) .tar.bz .tbz AddIcon (ZIP,/icons/compressed.img) .zip AddIcon (BOZ,/icons/compressed.img) .boz ### Other archives AddDescription "Macintosh Binhexed Archive" .hqx AddIcon (HQX,/icons/binhex.img) .hqx AddDescription "Macintosh Stuffit Archive" .sit .sea AddIcon (SIT,/icons/compressed.img) .sit AddIcon (SEA,/icons/compressed.img) .sea AddDescription "LHARC Archive" .lha AddIcon (LHA,/icons/compressed.img) .lha AddDescription "LZH Archive" .lzh AddIcon (LZH,/icons/compressed.img) .lzh AddDescription "ARJ Archive" .arj AddIcon (ARJ,/icons/compressed.img) .arj AddDescription "ZOO Archive" .zoo AddIcon (ZOO,/icons/compressed.img) .zoo AddDescription "RAR Archive" .rar AddIcon (RAR,/icons/compressed.img) .rar ### Perl Scripts AddDescription "PERL Script" .pl AddDescription "PERL Header" .ph AddDescription "PERL Module" .pm AddDescription "perl/Tk Script" .ptk AddIcon (PERL,/icons/script.img) .pl .ph .pm .ptk ### Shell Scripts AddDescription "sh/bash script" .sh AddDescription "bsh script" .bsh AddDescription "bash script" .bash AddDescription "csh/tcsh script" .csh AddDescription "tcsh script" .tcsh AddDescription "ksh script" .ksh AddDescription "zsh script" .zsh AddIcon (SH,/icons/script.img) .sh AddIcon (BSH,/icons/script.img) .bsh AddIcon (BASH,/icons/script.img) .bash AddIcon (TCSH,/icons/script.img) .tcsh AddIcon (CSH,/icons/script.img) .csh AddIcon (KSH,/icons/script.img) .ksh AddIcon (ZSH,/icons/script.img) .zsh ### Source code # Java (must come before C) AddDescription "Java Archive" .jar AddDescription "Java Source Code" .java .jav AddDescription "Java Byte Code" .class AddIcon (JAVA,/icons/generic.img) .java .jav AddIcon (JAVA,/icons/binary.img) .class .jar AddDescription "C++ Source Code (gzipped)" .cc.gz .cpp.gz .c++.gz .cxx.gz AddDescription "C++ Source Code (bzip2'ed)" .cc.bz2 .cpp.bz2 .c++.bz2 .cxx.bz2 AddDescription "C++ Source Code" .cc .cpp .c++ .cxx AddDescription "C Source Code (gzipped)" .c.gz AddDescription "C Source Code (bzip2'ed)" .c.bz2 AddDescription "C Source Code" .c AddDescription "C++ Header File (gzipped)" .hh.gz .hpp.gz .h++.gz AddDescription "C++ Header File (bzip2'ed)" .hh.bz2 .hpp.bz2 .h++.bz2 AddDescription "C++ Header File" .hh .hpp .h++ AddDescription "C Header File (gzipped)" .h.gz AddDescription "C Header File (bzip2'ed)" .h.bz2 # Auskommentiert wegen Apache Bug PR#8284. # (Siehe http://bugs.apache.org/index/full/8248) #AddDescription "C Header File" .h AddIcon (C++,/icons/c.img) .cc .cpp .c++ .cc.gz .cpp.gz .c++.gz .cxx.gz .cc.bz2 .cpp.bz2 .c++.bz2 .cxx.bz2 .hh .hpp .h++ .hh.gz .hpp.gz .h++.gz .hh.bz2 .hpp.bz2 .h++.bz2 AddIcon (C,/icons/c.img) .c .c.gz .c.bz2 .h .h.gz .h.bz2 AddDescription "Common Lisp Source Code" .lsp .lisp .cl AddDescription "GNU Common Lisp Source Code" .gcl AddIcon (LISP,/icons/generic.img) .lsp .lisp .cl AddIcon (GCL,/icons/generic.img) .gcl AddDescription "Emacs Lisp Source Code" .el AddDescription "Emacs Lisp Code" .elc AddIcon (EL,/icons/generic.img) .el AddIcon (ELC,/icons/generic.img) .elc AddDescription "Eiffel Source Code" .e AddIcon (E,/icons/generic.img) .e AddDescription "AWK Source Code" .awk AddIcon (AWK,/icons/generic.img) .awk AddDescription "SED Source Code" .sed AddIcon (SED,/icons/generic.img) .sed AddDescription "M4 Source Code" .m4 AddIcon (M4,/icons/generic.img) .m4 ### Images # JPEG & PNG AddDescription "Joint Photographic Experts Group (JPEG) Image" .jpg .jpeg .jpe AddDescription "JPEG File Interchange Format (JFIF) Image" .jfif AddDescription "JPEG Network Graphic (JNG)" .jng AddDescription "Portable Network Graphic (PNG)" .png AddDescription "Multiple-image Network Graphics (MNG)" .mng AddIcon (JPEG,/icons/image3.img) .jpg .jpeg .jpe AddIcon (JFIF,/icons/image3.img) .jfif AddIcon (JNG,/icons/image3.img) .jng AddIcon (PNG,/icons/image3.img) .png AddIcon (MNG,/icons/image3.img) .mng AddDescription "Compuserve Graphic Interchange Format (GIF) Image" .gif AddIcon (GIF,/icons/image2.img) .gif AddDescription "Internet Exchange Format (IEF, RFC 1314) Image" .ief AddIcon (IEF,/icons/image3.img) .ief AddDescription "X-Window Bitmap (gzipped)" .xbm.gz AddDescription "X-Window Bitmap (bzip2'ed)" .xbm.bz2 AddDescription "X-Window Bitmap" .xbm AddIcon (XBM,/icons/image1.img) .xbm .xbm.gz .xbm.bz2 AddDescription "X-Window Pixelmap (gzipped)" .xpm.gz AddDescription "X-Window Pixelmap (bzip2'ed)" .xpm.bz2 AddDescription "X-Window Pixelmap" .xpm AddIcon (XPM,/icons/image2.img) .xpm .xpm.gz .xpm.bz2 AddDescription "Tagged Image File Format (TIFF) Image" .tif .tiff AddIcon (TIFF,/icons/image3.img) .tif .tiff AddDescription "Fractal Image Format (FIF) Image" .fif AddIcon (FIF,/icons/image3.img) .fif AddDescription "Wavelet Image" .wi AddIcon (WI,/icons/image3.img) .wi AddDescription "Microsoft Windows Bitmap (BMP)" .bmp AddIcon (BMP,/icons/image2.img) .bmp AddDescription "Bookmark Icon" favicon.ico AddDescription "Microsoft Windows Icon" .ico AddIcon (ICO,/icons/image2.img) .ico ### Audio / Video AddDescription "Basic Audio (gzipped)" .au.gz .snd.gz AddDescription "Basic Audio (bzip2'ed)" .au.bz2 .snd.bz2 AddDescription "Basic Audio" .au .snd AddIcon (AU,/icons/sound1.img) .au .au.gz .au.bz2 AddIcon (SND,/icons/sound1.img) .snd .snd.gz .snd.bz2 AddDescription "Macintosh Audio Format (AIFF)" .aif .aiff .aifc AddIcon (AIFF,/icons/sound1.img) .aif .aiff .aifc AddDescription "Microsoft Wave Audio" .wav AddIcon (WAV,/icons/sound1.img) .wav AddDescription "MPEG Audio Layer 3 (MP3)" .mp3 AddIcon (MP3,/icons/sound2.img) .mp3 AddDescription "SoundVQ Audio File (VQF)" .vqf AddIcon (VQF,/icons/sound2.img) .vqf AddDescription "Ogg Vorbis Audio File" .ogg AddIcon (OGG,/icons/sound2.img) .ogg AddDescription "MIDI File" .midi .mid AddIcon (MIDI,/icons/sound2.img) .midi .mid AddDescription "MPEG Video" .mpeg .mpg .mpe AddIcon (MPEG,/icons/movie.img) .mpeg .mpg .mpe AddDescription "Quicktime Movie" .qt .mov AddIcon (MOV,/icons/movie.img) .qt .mov AddDescription "Microsoft Video" .avi AddIcon (AVI,/icons/movie.img) .avi ### PostScript / PDF # # Must come after the images section because of the AIF format # AddDescription "PostScript (gzipped)" .ai.gz .ps.gz AddDescription "PostScript (bzip2'ed)" .ai.bz2 .ps.bz2 AddDescription "PostScript" .ai .ps AddDescription "Encapsulated PostScript (gzipped)" .eps.gz AddDescription "Encapsulated PostScript (bzip2'ed)" .eps.bz2 AddDescription "Encapsulated PostScript" .eps AddDescription "Acrobat PDF" .pdf AddIcon (PS,/icons/ps.img) .ps .ai AddIcon (EPS,/icons/a.img) .eps AddIcon (PDF,/icons/pdf.img) .pdf ### Other document formats AddDescription "Rich Text Format (gzipped)" .rtf.gz AddDescription "Rich Text Format (bzip2'ed)" .rtf.bz2 AddDescription "Rich Text Format" .rtf AddIcon (RTF,/icons/a.img) .rtf .rtf.gz .rtf.bz2 AddDescription "Microsoft Word Document" .doc AddDescription "Microsoft Word Document Template" .dot AddIcon (DOC,/icons/a.img) .doc AddIcon (DOT,/icons/a.img) .dot AddDescription "Microsoft Excel" .xla .xlb .xlc .xld .xlk .xll .xlv .xlw AddDescription "Microsoft Excel Sheet" .xls AddDescription "Microsoft Excel Template" .xlt AddDescription "Microsoft Excel Macros" .xlm AddIcon (XLS,/icons/box2.img) .xls AddIcon (XLT,/icons/box2.img) .xlt AddIcon (XLM,/icons/box2.img) .xlm AddIcon (XLA,/icons/box2.img) .xla AddIcon (XLB,/icons/box2.img) .xlb AddIcon (XLC,/icons/box2.img) .xlc AddIcon (XLD,/icons/box2.img) .xld AddIcon (XLK,/icons/box2.img) .xlk AddIcon (XLL,/icons/box2.img) .xll AddIcon (XLV,/icons/box2.img) .xlv AddIcon (XLW,/icons/box2.img) .xlw AddDescription "Microsoft Powerpoint presentation" .ppt .ppz .pot .pwz .pow AddIcon (PPT,/icons/portal.img) .ppt .ppz .pot .pwz .pow AddDescription "Maker Interchange Format (FrameMaker)" .mif AddDescription "FrameMaker Document" .fm .fm4 .fm5 .fm6 AddIcon (FM,/icons/a.img) .mif .fm .fm4 .fm5 .fm6 ### PGP / MD5 AddDescription "PGP Signature" .asc AddIcon (PGP,/icons/generic.sec.img) .asc AddDescription "PGP Key(s)" .pgp .key AddIcon (PGP,/icons/generic.sec.img) .pgp .key AddDescription "MD5 Hash" .md5 AddIcon (MD5,/icons/generic.sec.img) .md5 AddDescription "SHA1 Hash" .sha1 AddIcon (SHA1,/icons/generic.sec.img) .sha1 ### UU-Encoded AddDescription "UU-Encoded File" .uu .uue AddIcon (UU,/icons/uuencoded.img) .uu .uue ### Linux Packages AddDescription "Debian Package" .deb AddDescription "RedHat Package" .rpm AddIcon (DEB,/icons/screw2.img) .deb AddIcon (RPM,/icons/screw2.img) .rpm ### Patches & Diffs AddDescription "Patch" .patch AddDescription "Diff Output" .diff AddIcon (DIFF,/icons/patch.img) .patch .diff ### XML AddDescription "Resource Description Framework" .rdf AddDescription "Resource Description Framework Site Summary" .rss AddIcon (RDF,/icons/comp.gray.img) .rdf AddIcon (RSS,/icons/comp.gray.img) .rss AddDescription "Extensible Markup Language" .xml AddDescription "Extensible Stylesheet Language" .xsl AddDescription "Extensible Stylesheet Language Template" .xslt AddDescription "Document Type Definition" .dtd AddIcon (XML,/icons/comp.gray.img) .xml AddIcon (XSL,/icons/comp.blue.img) .xsl AddIcon (XSLT,/icons/comp.blue.img) .xslt AddIcon (DTD,/icons/comp.gray.img) .dtd ### Other suffixes AddDescription "Automatic Proxy Configuration" .pac AddIcon (PAC,/icons/screw1.img) .pac AddDescription "VRML World" .wrl .vrml .vrm AddIcon (VRML,/icons/world1.img) .wrl .vrml .vrm AddDescription "JavaScript" .js AddIcon (JS,/icons/alert.red.img) .js AddDescription "Shockwave Flash" .swf AddIcon (SWF,/icons/portal.img) .swf AddDescription "MP3 Playlist" .m3u AddIcon (M3U,/icons/sound2.img) .m3u AddDescription "XMMS Playlist" .pls AddIcon (PLS,/icons/sound2.img) .pls AddDescription "DOS/Windows Executable" .exe AddDescription "DOS Executable" .com AddDescription "Windows Screensaver" .scr AddIcon (EXE,/icons/binary.img) .exe AddIcon (COM,/icons/binary.img) .com AddIcon (SCR,/icons/binary.img) .scr ##################################################### ### ### ### Icons for Compressed Encodings ### ### ### ##################################################### AddDescription "gzip compressed file" .gz .gzip AddDescription "bzip2 compressed file" .bz2 AddDescription "bzip compressed file" .bz AddDescription "compressed file" .Z AddIcon (GZIP,/icons/compressed.img) .gz .gzip AddIcon (BZIP,/icons/compressed.img) .bz AddIcon (BZIP2,/icons/compressed.img) .bz2 AddIcon (Z,/icons/compressed.img) .Z AddIconByEncoding (BZIP2,/icons/compressed.img) x-bzip2 AddIconByEncoding (BZIP,/icons/compressed.img) x-bzip AddIconByEncoding (GZIP,/icons/compressed.img) x-gzip AddIconByEncoding (Z,/icons/compressed.img) x-compress ##################################################### ### ### ### Icons by MIME Type ### ### ### ##################################################### AddIconByType (TEXT,/icons/text.img) text/* AddIconByType (IMG,/icons/image2.img) image/* AddIconByType (AU,/icons/sound2.img) audio/* AddIconByType (MOV,/icons/movie.img) video/* AddIconByType (BIN,/icons/binary.img) application/* ##################################################### ### ### ### Meta Files and "as is" Files ### ### ### ##################################################### ### As Is Files # # Enable Apache's send-asis HTTP file feature # AddHandler send-as-is asis ### Meta Files MetaFiles on # # MetaDir: specifies the name of the directory in which Apache can find # meta information files. These files contain additional HTTP headers # to include when sending the document # MetaDir . # # MetaSuffix: specifies the file name suffix for the file containing the # meta information. # MetaSuffix .meta ### Local Variables: ### mode: sgml ### comment-start: "#" ### End: