mod_autoindex.html revision 7fc6bb03c583147c40e349d1978b91414cc5407e
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey BGCOLOR="#FFFFFF"
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey TEXT="#000000"
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey LINK="#0000FF"
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey VLINK="#000080"
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey ALINK="#FF0000"
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumsey<!--#include virtual="header.html" -->
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom RumseyThis module is contained in the <CODE>mod_autoindex.c</CODE> file, and
8367f835047e57c70a508975d020905f0173f51aTom Rumseyis compiled in by default. It provides for automatic directory indexing.
8367f835047e57c70a508975d020905f0173f51aTom RumseyThe index of a directory can come from one of two sources:
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<LI>A file written by the user, typically called <CODE>index.html</CODE>.
f3fa3b65e8ebafc90b1044cf522ee35213299c42Tom RumseyThe <A HREF="mod_dir.html#directoryindex">DirectoryIndex</A> directive sets
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseythe name of this file.
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom RumseyThis is controlled by <A HREF="mod_dir.html"><CODE>mod_dir</CODE></A>.
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<LI>Otherwise, a listing generated by the server. The other directives
8367f835047e57c70a508975d020905f0173f51aTom Rumseycontrol the format of this listing. The <A HREF="#addicon">AddIcon</A>,
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<A HREF="#addiconbyencoding">AddIconByEncoding</A> and
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<A HREF="#addiconbytype">AddIconByType</A> are used to set a list of
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyicons to display for various file types; for each file listed, the
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyfirst icon listed that matches the file is displayed. These
efafbd2aa55b834f714882683fa864a0ac9e64aaTom RumseyThe two functions are separated so that you can completely remove
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey(or replace) automatic index generation should you want to.
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey HREF="#fancyindexing"
8367f835047e57c70a508975d020905f0173f51aTom Rumseyis enabled, or the <SAMP>FancyIndexing</SAMP> keyword is present on the
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey HREF="#indexoptions"
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseydirective, the column headers are links that control the
8367f835047e57c70a508975d020905f0173f51aTom Rumseyorder of the display. If you select a header link, the
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseylisting will be regenerated, sorted by the values in that
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseycolumn. Selecting the same header repeatedly toggles
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseybetween ascending and descending order.
efafbd2aa55b834f714882683fa864a0ac9e64aaTom RumseyNote that when the display is sorted by "Size",
d00779d35b3db7493fcdd3f8645e094c5540f4c4Tom Rumseyit's the <EM>actual</EM> size of the files that's used,
82f0250e57339ea51cb40e0ae859728a73f4ec56Tom Rumseynot the displayed value - so a 1010-byte file will
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyalways be displayed before a 1011-byte file (if in ascending
8367f835047e57c70a508975d020905f0173f51aTom Rumseyorder) even though they both are shown as "1K".
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<LI><A HREF="#addaltbyencoding">AddAltByEncoding</A>
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<LI><A HREF="#addiconbyencoding">AddIconByEncoding</A>
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<!--%plaintext <?INDEX {\tt AddAlt} directive> -->
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey><STRONG>Syntax:</STRONG></A> AddAlt <EM>string file file...</EM><BR>
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
efafbd2aa55b834f714882683fa864a0ac9e64aaTom RumseyThis sets the alternate text to display for a file, instead of an icon, for
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<A HREF="#fancyindexing">FancyIndexing</A>. <EM>File</EM> is a file
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyextension, partial filename, wild-card expression or full filename for files
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyto describe. <EM>String</EM> is enclosed in double quotes
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey(<CODE>"</CODE>). This alternate text is displayed if the client is
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumseyimage-incapable or has image loading disabled.
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<H2><A NAME="addaltbyencoding">AddAltByEncoding</A></H2>
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey<!--%plaintext <?INDEX {\tt AddAltByEncoding} directive> -->
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey><STRONG>Syntax:</STRONG></A> AddAltByEncoding <EM>string MIME-encoding
efafbd2aa55b834f714882683fa864a0ac9e64aaTom Rumsey><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
HREF="directive-dict.html#Syntax"
HREF="directive-dict.html#Context"
HREF="directive-dict.html#Override"
HREF="directive-dict.html#Status"
HREF="directive-dict.html#Module"
<!--#include virtual="footer.html" -->