mod_dir.html revision 2a2f335fc2510f021247f43fc52c760ee402d1e6
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher BGCOLOR="#FFFFFF"
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher TEXT="#000000"
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher LINK="#0000FF"
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher VLINK="#000080"
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher ALINK="#FF0000"
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--#include virtual="header.html" -->
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis module is contained in the <code>mod_dir.c</code> file, and
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagheris compiled in by default. It provides for directory indexing.
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis module controls the directory indexing. The index of a directory
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnikcan come from one of two sources:
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnik<li>A file written by the user, typically called <code>index.html</code>.
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas SlebodnikThe <A HREF="#directoryindex">DirectoryIndex</A> directive sets the name
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnik<li>Otherwise, a listing generated by the server. The other directives
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnikcontrol the format of this listing. The <A HREF="#addicon">AddIcon</A>,
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnik<A HREF="#addiconbyencoding">AddIconByEncoding</A> and
2bdadc5274df42738b97045cd01cd63d3651daf9Lukas Slebodnik<A HREF="#addiconbytype">AddIconByType</A> are used to set a list of
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallaghericons to display for various file types; for each file listed, the
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherfirst icon listed that matches the file is displayed.
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<li><A HREF="#addaltbyencoding">AddAltByEncoding</A>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<li><A HREF="#adddescription">AddDescription</A>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<li><A HREF="#addiconbyencoding">AddIconByEncoding</A>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<li><A HREF="#directoryindex">DirectoryIndex</A>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<!--%plaintext <?INDEX {\tt AddAlt} directive> -->
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<strong>Syntax:</strong> AddAlt <em>string file file...</em><br>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
dbea04f585a30d001b574317c068cd03a4fa332bJakub HrozekThis sets the alternate text to display for a file, instead of an icon, for
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<A HREF="#fancyindexing">FancyIndexing</A>. <em>File</em> is a file
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozekextension, partial filename, wild-card expression or full filename for files
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozekto describe. <em>String</em> is enclosed in double quotes
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek(<code>"</code>). This alternate text is displayed if the client is
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozekimage-incapable or has image loading disabled.
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<A name="addaltbyencoding"><h2>AddAltByEncoding</h2></A>
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<!--%plaintext <?INDEX {\tt AddAltByEncoding} directive> -->
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<strong>Syntax:</strong> AddAltByEncoding <em>string MIME-encoding
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
dbea04f585a30d001b574317c068cd03a4fa332bJakub HrozekThis sets the alternate text to display for a file, instead of an icon, for
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek<A HREF="#fancyindexing">FancyIndexing</A>. <em>MIME-encoding</em> is a
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozekvalid content-encoding, such as <SAMP>x-compress</SAMP>.
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozek(<code>"</code>). This alternate text is displayed if the client is
dbea04f585a30d001b574317c068cd03a4fa332bJakub Hrozekimage-incapable or has image loading disabled.
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A name="addaltbytype"><h2>AddAltByType</h2></A>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--%plaintext <?INDEX {\tt AddAltByType} directive> -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<strong>Syntax:</strong> AddAltByType <em>string MIME-type MIME-type...</em><br>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis sets the alternate text to display for a file, instead of an icon, for
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A HREF="#fancyindexing">FancyIndexing</A>. <em>MIME-type</em> is a
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallaghervalid content-type, such as <SAMP>text/html</SAMP>.
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<em>String</em> is enclosed in double quotes
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher(<code>"</code>). This alternate text is displayed if the client is
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherimage-incapable or has image loading disabled.
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A name="adddescription"><h2>AddDescription</h2></A>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--%plaintext <?INDEX {\tt AddDescription} directive> -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<strong>Syntax:</strong> AddDescription <em>string file file...</em><br>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis sets the description to display for a file, for
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A HREF="#fancyindexing">FancyIndexing</A>. <em>File</em> is a file
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherextension, partial filename, wild-card expression or full filename for files
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherto describe. <em>String</em> is enclosed in double quotes
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<blockquote><code>AddDescription "The planet Mars" /web/pics/mars.gif
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--%plaintext <?INDEX {\tt AddIcon} directive> -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<strong>Syntax:</strong> AddIcon <em>icon name name ...</em><br>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis sets the icon to display next to a file ending in <em>name</em> for
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A HREF="#fancyindexing">FancyIndexing</A>. <em>Icon</em> is either a
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher(%-escaped) relative URL to the icon, or of the format
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher(<em>alttext</em>,<em>url</em>) where <em>alttext</em> is the text tag given
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherfor an icon for non-graphical browsers.<p>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<em>Name</em> is either ^^DIRECTORY^^ for directories, ^^BLANKICON^^ for
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherblank lines (to format the list correctly), a file extension, a wildcard
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherexpression, a partial filename or a complete filename. Examples:
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherAddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm <br>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A HREF="#addiconbytype">AddIconByType</A> should be used in preference to
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A name="addiconbyencoding"><h2>AddIconByEncoding</h2></A>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--%plaintext <?INDEX {\tt AddIconByEncoding} directive> -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<strong>Syntax:</strong> AddIconByEncoding <em>icon mime-encoding mime-encoding
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis sets the icon to display next to files with
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<em>mime-encoding</em> for <A HREF="#fancyindexing">FancyIndexing</A>.
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<em>Icon</em> is either a (%-escaped) relative URL to the icon, or of the
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherformat (<em>alttext</em>,<em>url</em>) where <em>alttext</em> is the text tag
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallaghergiven for an icon for non-graphical browsers.<p>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<em>Mime-encoding</em> is a wildcard expression matching required the
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallaghercontent-encoding. Examples:
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherAddIconByEncoding /icons/compress.xbm x-compress
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A name="addiconbytype"><h2>AddIconByType</h2></A>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<!--%plaintext <?INDEX {\tt AddIconByType} directive> -->
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<strong>Syntax:</strong> AddIconByType <em>icon mime-type mime-type ...</em><br>
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<Strong>Context:</strong> server config, virtual host, directory, .htaccess<br>
b32159300fea63222d8dd9200ed634087704ea74Stephen GallagherThis sets the icon to display next to files of type <em>mime-type</em> for
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher<A HREF="#fancyindexing">FancyIndexing</A>. <em>Icon</em> is either a
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher(%-escaped) relative URL to the icon, or of the format
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagher(<em>alttext</em>,<em>url</em>) where <em>alttext</em> is the text tag given
b32159300fea63222d8dd9200ed634087704ea74Stephen Gallagherfor an icon for non-graphical browsers.<p>
2b4332767d299263a288e0a74bbfbc9de674de95Jakub Hrozek<em>Mime-type</em> is a wildcard expression matching required the mime types.
2b4332767d299263a288e0a74bbfbc9de674de95Jakub Hrozek<!--%plaintext <?INDEX {\tt DefaultIcon} directive> -->
2b4332767d299263a288e0a74bbfbc9de674de95Jakub Hrozek<strong>Syntax:</strong> DefaultIcon <em>url</em><br>
DirectoryIndex index.html
<!--#include virtual="footer.html" -->