home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / apache_2.2.8-win32-x86-no_ssl.msi / Data1.cab / _7827454A7B1C27401F9DBC5EA9585E97 < prev    next >
Extensible Markup Language  |  2007-09-01  |  53KB  |  919 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
  4.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  5.               This file is generated from xml source: DO NOT EDIT
  6.         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  7.       -->
  8. <title>mod_autoindex - Apache HTTP Server</title>
  9. <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
  10. <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
  11. <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
  12. <link href="../images/favicon.ico" rel="shortcut icon" /></head>
  13. <body>
  14. <div id="page-header">
  15. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
  16. <p class="apache">Apache HTTP Server Version 2.2</p>
  17. <img alt="" src="../images/feather.gif" /></div>
  18. <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
  19. <div id="path">
  20. <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Modules</a></div>
  21. <div id="page-content">
  22. <div id="preamble"><h1>Apache Module mod_autoindex</h1>
  23. <div class="toplang">
  24. <p><span>Available Languages: </span><a href="../en/mod/mod_autoindex.html" title="English"> en </a> |
  25. <a href="../ja/mod/mod_autoindex.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  26. <a href="../ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  27. </div>
  28. <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Generates directory indexes,
  29.     automatically, similar to the Unix <code>ls</code> command or the
  30.     Win32 <code>dir</code> shell command</td></tr>
  31. <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Base</td></tr>
  32. <tr><th><a href="module-dict.html#ModuleIdentifier">ModuleáIdentifier:</a></th><td>autoindex_module</td></tr>
  33. <tr><th><a href="module-dict.html#SourceFile">SourceáFile:</a></th><td>mod_autoindex.c</td></tr></table>
  34. <h3>Summary</h3>
  35.  
  36.       <p>The index of a directory can come from one of two
  37.       sources:</p>
  38.  
  39.     <ul>
  40.       <li>A file written by the user, typically called
  41.       <code>index.html</code>. The <code class="directive"><a href="../mod/mod_dir.html#directoryindex">DirectoryIndex</a></code> directive sets the
  42.       name of this file. This is controlled by
  43.       <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code>.</li>
  44.  
  45.       <li>Otherwise, a listing generated by the server. The other
  46.       directives control the format of this listing. The <code class="directive"><a href="#addicon">AddIcon</a></code>, <code class="directive"><a href="#addiconbyencoding">AddIconByEncoding</a></code> and
  47.       <code class="directive"><a href="#addiconbytype">AddIconByType</a></code> are
  48.       used to set a list of icons to display for various file types;
  49.       for each file listed, the first icon listed that matches the
  50.       file is displayed. These are controlled by
  51.       <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>.</li>
  52.     </ul>
  53.     <p>The two functions are separated so that you can completely
  54.     remove (or replace) automatic index generation should you want
  55.     to.</p> 
  56.  
  57.     <p>Automatic index generation is enabled with using
  58.     <code>Options +Indexes</code>. See the 
  59.     <code class="directive"><a href="../mod/core.html#options">Options</a></code> directive for
  60.     more details.</p>
  61.  
  62.     <p>If the <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code> option is given with the <code class="directive"><a href="#indexoptions">IndexOptions</a></code> directive,
  63.     the column headers are links that control the order of the
  64.     display. If you select a header link, the listing will be
  65.     regenerated, sorted by the values in that column. Selecting the
  66.     same header repeatedly toggles between ascending and descending
  67.     order. These column header links are suppressed with
  68.     <code class="directive"><a href="#indexoptions">IndexOptions</a></code> directive's
  69.     <code>SuppressColumnSorting</code> option.</p>
  70.  
  71.     <p>Note that when the display is sorted by "Size", it's the
  72.     <em>actual</em> size of the files that's used, not the
  73.     displayed value - so a 1010-byte file will always be displayed
  74.     before a 1011-byte file (if in ascending order) even though
  75.     they both are shown as "1K".</p>
  76. </div>
  77. <div id="quickview"><h3 class="directives">Directives</h3>
  78. <ul id="toc">
  79. <li><img alt="" src="../images/down.gif" /> <a href="#addalt">AddAlt</a></li>
  80. <li><img alt="" src="../images/down.gif" /> <a href="#addaltbyencoding">AddAltByEncoding</a></li>
  81. <li><img alt="" src="../images/down.gif" /> <a href="#addaltbytype">AddAltByType</a></li>
  82. <li><img alt="" src="../images/down.gif" /> <a href="#adddescription">AddDescription</a></li>
  83. <li><img alt="" src="../images/down.gif" /> <a href="#addicon">AddIcon</a></li>
  84. <li><img alt="" src="../images/down.gif" /> <a href="#addiconbyencoding">AddIconByEncoding</a></li>
  85. <li><img alt="" src="../images/down.gif" /> <a href="#addiconbytype">AddIconByType</a></li>
  86. <li><img alt="" src="../images/down.gif" /> <a href="#defaulticon">DefaultIcon</a></li>
  87. <li><img alt="" src="../images/down.gif" /> <a href="#headername">HeaderName</a></li>
  88. <li><img alt="" src="../images/down.gif" /> <a href="#indexignore">IndexIgnore</a></li>
  89. <li><img alt="" src="../images/down.gif" /> <a href="#indexoptions">IndexOptions</a></li>
  90. <li><img alt="" src="../images/down.gif" /> <a href="#indexorderdefault">IndexOrderDefault</a></li>
  91. <li><img alt="" src="../images/down.gif" /> <a href="#indexstylesheet">IndexStyleSheet</a></li>
  92. <li><img alt="" src="../images/down.gif" /> <a href="#readmename">ReadmeName</a></li>
  93. </ul>
  94. <h3>Topics</h3>
  95. <ul id="topics">
  96. <li><img alt="" src="../images/down.gif" /> <a href="#query">Autoindex Request Query Arguments</a></li>
  97. </ul></div>
  98. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  99. <div class="section">
  100. <h2><a name="query" id="query">Autoindex Request Query Arguments</a></h2>
  101.     
  102.  
  103.     <p>Apache 2.0.23 reorganized the Query Arguments for Column
  104.     Sorting, and introduced an entire group of new query options.
  105.     To effectively eliminate all client control over the output,
  106.     the <code><a href="#indexoptions.ignoreclient">IndexOptions
  107.     IgnoreClient</a></code> option was introduced.</p>
  108.  
  109.     <p>The column sorting headers themselves are self-referencing
  110.     hyperlinks that add the sort query options shown below. Any
  111.     option below may be added to any request for the directory
  112.     resource.</p>
  113.  
  114.     <ul>
  115.       <li><code>C=N</code> sorts the directory by file name</li>
  116.  
  117.       <li><code>C=M</code> sorts the directory by last-modified
  118.       date, then file name</li>
  119.  
  120.       <li><code>C=S</code> sorts the directory by size, then file
  121.       name</li>
  122.  
  123.       <li class="separate"><code>C=D</code> sorts the directory by description, then
  124.       file name</li>
  125.  
  126.       <li><code>O=A</code> sorts the listing in Ascending
  127.       Order</li>
  128.  
  129.       <li class="separate"><code>O=D</code> sorts the listing in Descending
  130.       Order</li>
  131.  
  132.       <li><code>F=0</code> formats the listing as a simple list
  133.       (not FancyIndexed)</li>
  134.  
  135.       <li><code>F=1</code> formats the listing as a FancyIndexed
  136.       list</li>
  137.  
  138.       <li class="separate"><code>F=2</code> formats the listing as an
  139.       HTMLTable FancyIndexed list</li>
  140.  
  141.       <li><code>V=0</code> disables version sorting</li>
  142.  
  143.       <li class="separate"><code>V=1</code> enables version sorting</li>
  144.  
  145.       <li><code>P=<var>pattern</var></code> lists only files matching
  146.       the given <var>pattern</var></li>
  147.     </ul>
  148.  
  149.     <p>Note that the 'P'attern query argument is tested
  150.     <em>after</em> the usual <code class="directive"><a href="#indexignore">IndexIgnore</a></code> directives are processed,
  151.     and all file names are still subjected to the same criteria as
  152.     any other autoindex listing. The Query Arguments parser in
  153.     <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> will stop abruptly when an unrecognized
  154.     option is encountered. The Query Arguments must be well formed,
  155.     according to the table above.</p>
  156.  
  157.     <p>The simple example below, which can be clipped and saved in
  158.     a header.html file, illustrates these query options. Note that
  159.     the unknown "X" argument, for the submit button, is listed last
  160.     to assure the arguments are all parsed before mod_autoindex
  161.     encounters the X=Go input.</p>
  162.  
  163.     <div class="example"><p><code>
  164.       <form action="" method="get"><br />
  165.       <span class="indent">
  166.         Show me a <select name="F"><br />
  167.         <span class="indent">
  168.           <option value="0"> Plain list</option><br />
  169.           <option value="1" selected="selected"> Fancy list</option><br />
  170.           <option value="2"> Table list</option><br />
  171.         </span>
  172.         </select><br />
  173.         Sorted by <select name="C"><br />
  174.         <span class="indent">
  175.           <option value="N" selected="selected"> Name</option><br />
  176.           <option value="M"> Date Modified</option><br />
  177.           <option value="S"> Size</option><br />
  178.           <option value="D"> Description</option><br />
  179.         </span>
  180.         </select><br />
  181.         <select name="O"><br />
  182.         <span class="indent">
  183.           <option value="A" selected="selected"> Ascending</option><br />
  184.           <option value="D"> Descending</option><br />
  185.         </span>
  186.         </select><br />
  187.         <select name="V"><br />
  188.         <span class="indent">
  189.           <option value="0" selected="selected"> in Normal order</option><br />
  190.           <option value="1"> in Version order</option><br />
  191.         </span>
  192.         </select><br />
  193.         Matching <input type="text" name="P" value="*" /><br />
  194.         <input type="submit" name="X" value="Go" /><br />
  195.       </span>
  196.       </form>
  197.     </code></p></div>
  198.  
  199. </div>
  200. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  201. <div class="directive-section"><h2><a name="AddAlt" id="AddAlt">AddAlt</a> <a name="addalt" id="addalt">Directive</a></h2>
  202. <table class="directive">
  203. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file, instead of an
  204. icon selected by filename</td></tr>
  205. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAlt <var>string</var> <var>file</var> [<var>file</var>] ...</code></td></tr>
  206. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  207. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  208. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  209. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  210. </table>
  211.     <p><code class="directive">AddAlt</code> provides the alternate text to
  212.     display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  213.     <var>File</var> is a file extension, partial filename, wild-card
  214.     expression or full filename for files to describe.
  215.     If <var>String</var> contains any whitespace, you have to enclose it
  216.     in quotes (<code>"</code> or <code>'</code>). This alternate text
  217.     is displayed if the client is image-incapable, has image loading
  218.     disabled, or fails to retrieve the icon.</p>
  219.  
  220.     <div class="example"><h3>Examples</h3><p><code>
  221.       AddAlt "PDF file" *.pdf<br />
  222.       AddAlt Compressed *.gz *.zip *.Z
  223.     </code></p></div>
  224.  
  225. </div>
  226. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  227. <div class="directive-section"><h2><a name="AddAltByEncoding" id="AddAltByEncoding">AddAltByEncoding</a> <a name="addaltbyencoding" id="addaltbyencoding">Directive</a></h2>
  228. <table class="directive">
  229. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file instead of an icon
  230. selected by MIME-encoding</td></tr>
  231. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAltByEncoding <var>string</var> <var>MIME-encoding</var>
  232. [<var>MIME-encoding</var>] ...</code></td></tr>
  233. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  234. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  235. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  236. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  237. </table>
  238.     <p><code class="directive">AddAltByEncoding</code> provides the alternate
  239.     text to display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  240.     <var>MIME-encoding</var> is a valid content-encoding, such as
  241.     <code>x-compress</code>. If <var>String</var> contains any whitespace,
  242.     you have to enclose it in quotes (<code>"</code> or <code>'</code>).
  243.     This alternate text is displayed if the client is image-incapable,
  244.     has image loading disabled, or fails to retrieve the icon.</p>
  245.  
  246.     <div class="example"><h3>Example</h3><p><code>
  247.       AddAltByEncoding gzip x-gzip
  248.     </code></p></div>
  249.  
  250. </div>
  251. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  252. <div class="directive-section"><h2><a name="AddAltByType" id="AddAltByType">AddAltByType</a> <a name="addaltbytype" id="addaltbytype">Directive</a></h2>
  253. <table class="directive">
  254. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Alternate text to display for a file, instead of an
  255. icon selected by MIME content-type</td></tr>
  256. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddAltByType <var>string</var> <var>MIME-type</var>
  257. [<var>MIME-type</var>] ...</code></td></tr>
  258. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  259. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  260. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  261. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  262. </table>
  263.     <p><code class="directive">AddAltByType</code> sets the alternate text to
  264.     display for a file, instead of an icon, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  265.     <var>MIME-type</var> is a valid content-type, such as
  266.     <code>text/html</code>. If <var>String</var> contains any whitespace,
  267.     you have to enclose it in quotes (<code>"</code> or <code>'</code>).
  268.     This alternate text is displayed if the client is image-incapable,
  269.     has image loading disabled, or fails to retrieve the icon.</p>
  270.  
  271.     <div class="example"><h3>Example</h3><p><code>
  272.       AddAltByType 'plain text' text/plain
  273.     </code></p></div>
  274.  
  275. </div>
  276. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  277. <div class="directive-section"><h2><a name="AddDescription" id="AddDescription">AddDescription</a> <a name="adddescription" id="adddescription">Directive</a></h2>
  278. <table class="directive">
  279. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Description to display for a file</td></tr>
  280. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddDescription <var>string file</var> [<var>file</var>] ...</code></td></tr>
  281. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  282. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  283. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  284. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  285. </table>
  286.     <p>This sets the description to display for a file, for
  287.     <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  288.     <var>File</var> is a file extension, partial filename, wild-card
  289.     expression or full filename for files to describe.
  290.     <var>String</var> is enclosed in double quotes (<code>"</code>).</p>
  291.  
  292.     <div class="example"><h3>Example</h3><p><code>
  293.       AddDescription "The planet Mars" /web/pics/mars.gif
  294.     </code></p></div>
  295.  
  296.     <p>The typical, default description field is 23 bytes wide. 6
  297.     more bytes are added by the <code><a href="#indexoptions.suppressicon">IndexOptions SuppressIcon</a></code> option, 7 bytes are
  298.     added by the <code><a href="#indexoptions.suppresssize">IndexOptions SuppressSize</a></code> option, and 19 bytes are
  299.     added by the <code><a href="#indexoptions.suppresslastmodified">IndexOptions SuppressLastModified</a></code> option.
  300.     Therefore, the widest default the description column is ever
  301.     assigned is 55 bytes.</p>
  302.  
  303.     <p>See the <a href="#indexoptions.descriptionwidth">DescriptionWidth</a> <code class="directive"><a href="#indexoptions">IndexOptions</a></code> keyword for details on overriding the size
  304.     of this column, or allowing descriptions of unlimited length.</p>
  305.  
  306.     <div class="note"><h3>Caution</h3>
  307.       <p>Descriptive text defined with <code class="directive">AddDescription</code>
  308.       may contain HTML markup, such as tags and character entities. If the
  309.       width of the description column should happen to truncate a tagged
  310.       element (such as cutting off the end of a bolded phrase), the
  311.       results may affect the rest of the directory listing.</p>
  312.     </div>
  313.  
  314. </div>
  315. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  316. <div class="directive-section"><h2><a name="AddIcon" id="AddIcon">AddIcon</a> <a name="addicon" id="addicon">Directive</a></h2>
  317. <table class="directive">
  318. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display for a file selected by name</td></tr>
  319. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIcon <var>icon</var> <var>name</var> [<var>name</var>]
  320. ...</code></td></tr>
  321. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  322. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  323. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  324. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  325. </table>
  326.     <p>This sets the icon to display next to a file ending in
  327.     <var>name</var> for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>. <var>Icon</var> is either a (%-escaped)
  328.     relative URL to the icon, or of the format <code>
  329.     (<var>alttext</var>,<var>url</var>)</code> where <var>alttext</var>
  330.     is the text tag given for an icon for non-graphical browsers.</p>
  331.  
  332.     <p><var>Name</var> is either <code>^^DIRECTORY^^</code> for directories,
  333.     <code>^^BLANKICON^^</code> for blank lines (to format the list
  334.     correctly), a file extension, a wildcard expression, a partial
  335.     filename or a complete filename.</p>
  336.  
  337.     <div class="example"><h3>Examples</h3><p><code>
  338.       AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm<br />
  339.       AddIcon /icons/dir.xbm ^^DIRECTORY^^<br />
  340.       AddIcon /icons/backup.xbm *~
  341.     </code></p></div>
  342.     
  343.     <p><code class="directive"><a href="#addiconbytype">AddIconByType</a></code>
  344.     should be used in preference to <code class="directive">AddIcon</code>,
  345.     when possible.</p>
  346.  
  347. </div>
  348. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  349. <div class="directive-section"><h2><a name="AddIconByEncoding" id="AddIconByEncoding">AddIconByEncoding</a> <a name="addiconbyencoding" id="addiconbyencoding">Directive</a></h2>
  350. <table class="directive">
  351. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display next to files selected by MIME 
  352. content-encoding</td></tr>
  353. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIconByEncoding <var>icon</var> <var>MIME-encoding</var>
  354. [<var>MIME-encoding</var>] ...</code></td></tr>
  355. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  356. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  357. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  358. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  359. </table>
  360.     <p>This sets the icon to display next to files with <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  361.     <var>Icon</var> is either a (%-escaped) relative URL to the icon,
  362.     or of the format <code>(<var>alttext</var>,<var>url</var>)</code>
  363.     where <var>alttext</var> is the text tag given for an icon for
  364.     non-graphical browsers.</p>
  365.  
  366.     <p><var>MIME-encoding</var> is a wildcard expression matching
  367.     required the content-encoding.</p>
  368.  
  369.     <div class="example"><h3>Example</h3><p><code>
  370.       AddIconByEncoding /icons/compress.xbm x-compress
  371.     </code></p></div>
  372.  
  373. </div>
  374. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  375. <div class="directive-section"><h2><a name="AddIconByType" id="AddIconByType">AddIconByType</a> <a name="addiconbytype" id="addiconbytype">Directive</a></h2>
  376. <table class="directive">
  377. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display next to files selected by MIME 
  378. content-type</td></tr>
  379. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AddIconByType <var>icon</var> <var>MIME-type</var>
  380. [<var>MIME-type</var>] ...</code></td></tr>
  381. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  382. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  383. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  384. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  385. </table>
  386.     <p>This sets the icon to display next to files of type
  387.     <var>MIME-type</var> for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  388.     <var>Icon</var> is either a (%-escaped) relative URL to the icon,
  389.     or of the format <code>(<var>alttext</var>,<var>url</var>)</code>
  390.     where <var>alttext</var> is the text tag given for an icon for
  391.     non-graphical browsers.</p>
  392.  
  393.     <p><var>MIME-type</var> is a wildcard expression matching
  394.     required the mime types.</p>
  395.  
  396.     <div class="example"><h3>Example</h3><p><code>
  397.       AddIconByType (IMG,/icons/image.xbm) image/*
  398.     </code></p></div>
  399.  
  400. </div>
  401. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  402. <div class="directive-section"><h2><a name="DefaultIcon" id="DefaultIcon">DefaultIcon</a> <a name="defaulticon" id="defaulticon">Directive</a></h2>
  403. <table class="directive">
  404. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Icon to display for files when no specific icon is
  405. configured</td></tr>
  406. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>DefaultIcon <var>url-path</var></code></td></tr>
  407. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  408. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  409. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  410. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  411. </table>
  412.     <p>The <code class="directive">DefaultIcon</code> directive sets the icon
  413.     to display for files when no specific icon is known, for <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>.
  414.     <var>Url-path</var> is a (%-escaped) relative URL to the icon.</p>
  415.  
  416.     <div class="example"><h3>Example</h3><p><code>
  417.       DefaultIcon /icon/unknown.xbm
  418.     </code></p></div>
  419.  
  420. </div>
  421. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  422. <div class="directive-section"><h2><a name="HeaderName" id="HeaderName">HeaderName</a> <a name="headername" id="headername">Directive</a></h2>
  423. <table class="directive">
  424. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Name of the file that will be inserted at the top
  425. of the index listing</td></tr>
  426. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>HeaderName <var>filename</var></code></td></tr>
  427. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  428. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  429. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  430. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  431. </table>
  432.     <p>The <code class="directive">HeaderName</code> directive sets the name
  433.     of the file that will be inserted at the top of the index
  434.     listing. <var>Filename</var> is the name of the file to include.</p>
  435.  
  436.     <div class="example"><h3>Example</h3><p><code>
  437.       HeaderName HEADER.html
  438.     </code></p></div>
  439.  
  440.     <div class="note">
  441.       <p>Both HeaderName and <code class="directive"><a href="#readmename">ReadmeName</a></code> now treat
  442.       <var>Filename</var> as a URI path relative to the one used to
  443.       access the directory being indexed. If <var>Filename</var> begins
  444.       with a slash, it will be taken to be relative to the <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>.</p>
  445.  
  446.       <div class="example"><h3>Example</h3><p><code>
  447.         HeaderName /include/HEADER.html
  448.       </code></p></div>
  449.       
  450.       <p><var>Filename</var> must resolve to a document with a major
  451.       content type of <code>text/*</code> (<em>e.g.</em>,
  452.       <code>text/html</code>, <code>text/plain</code>, etc.). This means
  453.       that <var>filename</var> may refer to a CGI script if the script's
  454.       actual file type (as opposed to its output) is marked as
  455.       <code>text/html</code> such as with a directive like:</p>
  456.  
  457.       <div class="example"><p><code>
  458.         AddType text/html .cgi
  459.       </code></p></div>
  460.  
  461.       <p><a href="../content-negotiation.html">Content negotiation</a>
  462.       will be performed if <code class="directive"><a href="../mod/core.html#options">Options</a></code>
  463.       <code>MultiViews</code> is in effect. If <var>filename</var> resolves
  464.       to a static <code>text/html</code> document (not a CGI script) and
  465.       either one of the <code class="directive"><a href="../mod/core.html#options">options</a></code>
  466.       <code>Includes</code> or <code>IncludesNOEXEC</code> is enabled,
  467.       the file will be processed for server-side includes (see the
  468.       <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> documentation).</p>
  469.     </div>
  470.  
  471.     <p>If the file specified by <code class="directive">HeaderName</code> contains
  472.     the beginnings of an HTML document (<html>, <head>, etc.)
  473.     then you will probably want to set <a href="#indexoptions.suppresshtmlpreamble"><code>IndexOptions
  474.     +SuppressHTMLPreamble</code></a>, so that these tags are not
  475.     repeated.</p>
  476.  
  477. </div>
  478. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  479. <div class="directive-section"><h2><a name="IndexIgnore" id="IndexIgnore">IndexIgnore</a> <a name="indexignore" id="indexignore">Directive</a></h2>
  480. <table class="directive">
  481. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Adds to the list of files to hide when listing 
  482. a directory</td></tr>
  483. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexIgnore <var>file</var> [<var>file</var>] ...</code></td></tr>
  484. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  485. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  486. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  487. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  488. </table>
  489.     <p>The <code class="directive">IndexIgnore</code> directive adds to the
  490.     list of files to hide when listing a directory. <var>File</var> is a
  491.     shell-style wildcard expression or full
  492.     filename. Multiple IndexIgnore directives add
  493.     to the list, rather than the replacing the list of ignored
  494.     files. By default, the list contains <code>.</code> (the current
  495.     directory).</p>
  496.  
  497.     <div class="example"><p><code>
  498.       IndexIgnore README .htaccess *.bak *~
  499.     </code></p></div>
  500.  
  501. </div>
  502. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  503. <div class="directive-section"><h2><a name="IndexOptions" id="IndexOptions">IndexOptions</a> <a name="indexoptions" id="indexoptions">Directive</a></h2>
  504. <table class="directive">
  505. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Various configuration settings for directory 
  506. indexing</td></tr>
  507. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexOptions  [+|-]<var>option</var> [[+|-]<var>option</var>]
  508. ...</code></td></tr>
  509. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  510. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  511. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  512. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  513. </table>
  514.     <p>The <code class="directive">IndexOptions</code> directive specifies the
  515.     behavior of the directory indexing. <var>Option</var> can be one
  516.     of</p>
  517.  
  518.     <dl>
  519.       <dt><a name="indexoptions.charset" id="indexoptions.charset">Charset=<var>character-set</var></a> (<em>Apache 2.0.61 and
  520.       later</em>)</dt>
  521.  
  522.       <dd>The <code>Charset</code> keyword allows you to
  523.       specify the character set of the generated page. The
  524.       default is either <var>ISO-8859-1</var> or <var>UTF-8</var>,
  525.       depending on whether the underlying file system is unicode
  526.       or not.
  527.  
  528.       <div class="example"><h3>Example:</h3><p><code>
  529.         IndexOptions Charset=UTF-8
  530.       </code></p></div>
  531.       </dd>
  532.       
  533.       <dt><a name="indexoptions.type" id="indexoptions.type">Type=<var>MIME content-type</var></a> (<em>Apache 2.0.61 and
  534.       later</em>)</dt>
  535.  
  536.       <dd>The <code>Type</code> keyword allows you to
  537.       specify the MIME content-type of the generated page. The default
  538.       is <var>text/html</var>.
  539.  
  540.       <div class="example"><h3>Example:</h3><p><code>
  541.         IndexOptions Type=text/plain
  542.       </code></p></div>
  543.       </dd>
  544.       
  545.       <dt><a name="indexoptions.descriptionwidth" id="indexoptions.descriptionwidth">DescriptionWidth=[<var>n</var> | *]</a> (<em>Apache 2.0.23 and
  546.       later</em>)</dt>
  547.  
  548.       <dd>The <code>DescriptionWidth</code> keyword allows you to
  549.       specify the width of the description column in
  550.       characters.</dd>
  551.  
  552.       <dd><code>-DescriptionWidth</code> (or unset) allows
  553.       <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to calculate the best width.</dd>
  554.  
  555.       <dd><code>DescriptionWidth=<var>n</var></code> fixes the column width to
  556.       <var>n</var> bytes wide.</dd>
  557.  
  558.       <dd><code>DescriptionWidth=*</code> grows the column to the
  559.       width necessary to accommodate the longest description
  560.       string.</dd>
  561.  
  562.       <dd><strong>See the section on <code class="directive"><a href="#adddescription">AddDescription</a></code> for dangers
  563.       inherent in truncating descriptions.</strong></dd>
  564.  
  565.       <dt><a name="indexoptions.fancyindexing" id="indexoptions.fancyindexing">FancyIndexing</a></dt>
  566.  
  567.       <dd>This turns on fancy indexing of directories.</dd>
  568.  
  569.       <dt><a name="indexoptions.foldersfirst" id="indexoptions.foldersfirst">FoldersFirst</a> (<em>Apache
  570.       2.0.23 and later</em>)</dt>
  571.  
  572.       <dd>If this option is enabled, subdirectory listings will
  573.       <em>always</em> appear first, followed by normal files in the
  574.       directory. The listing is basically broken into two
  575.       components, the files and the subdirectories, and each is
  576.       sorted separately and then displayed subdirectories-first.
  577.       For instance, if the sort order is descending by name, and
  578.       <code>FoldersFirst</code> is enabled, subdirectory
  579.       <code>Zed</code> will be listed before subdirectory
  580.       <code>Beta</code>, which will be listed before normal files
  581.       <code>Gamma</code> and <code>Alpha</code>. <strong>This option
  582.       only has an effect if <a href="#indexoptions.fancyindexing"><code>FancyIndexing</code></a> is also enabled.</strong></dd>
  583.  
  584.       <dt><a name="indexoptions.htmltable" id="indexoptions.htmltable">HTMLTable</a> (<em>Experimental,
  585.       Apache 2.0.23 and later</em>)</dt>
  586.  
  587.       <dd>This experimental option with FancyIndexing constructs a
  588.       simple table for the fancy directory listing. Note this will
  589.       confuse older browsers. It is particularly necessary if file
  590.       names or description text will alternate between
  591.       left-to-right and right-to-left reading order, as can happen
  592.       on WinNT or other utf-8 enabled platforms.</dd>
  593.  
  594.       <dt><a name="indexoptions.iconsarelinks" id="indexoptions.iconsarelinks">IconsAreLinks</a></dt>
  595.  
  596.       <dd>This makes the icons part of the anchor for the filename, for
  597.       fancy indexing.</dd>
  598.  
  599.       <dt><a name="indexoptions.iconheight" id="indexoptions.iconheight">IconHeight[=<var>pixels</var>]</a></dt>
  600.  
  601.       <dd>Presence of this option, when used with IconWidth, will cause
  602.       the server to include <code>height</code> and <code>width</code>
  603.       attributes in the <code>img</code> tag for the file icon. This allows
  604.       browser to precalculate the page layout without having to wait until
  605.       all the images have been loaded. If no value is given for the option,
  606.       it defaults to the standard height of the icons supplied with the Apache
  607.       software.</dd>
  608.  
  609.       <dt><a name="indexoptions.iconwidth" id="indexoptions.iconwidth">IconWidth[=<var>pixels</var>]</a></dt>
  610.  
  611.       <dd>Presence of this option, when used with <code>IconHeight</code>,
  612.       will cause the server to include <code>height</code> and
  613.       <code>width</code> attributes in the <code>img</code> tag for
  614.       the file icon. This allows browser to precalculate the page
  615.       layout without having to wait until all the images have been
  616.       loaded. If no value is given for the option, it defaults to
  617.       the standard width of the icons supplied with the Apache
  618.       software.</dd>
  619.  
  620.       <dt><a name="indexoptions.ignorecase" id="indexoptions.ignorecase">IgnoreCase</a></dt>
  621.  
  622.       <dd>If this option is enabled, names are sorted in a case-insensitive 
  623.       manner.  For instance, if the sort order is ascending by name, and 
  624.       IgnoreCase is enabled, file Zeta  will be listed after file alfa 
  625.       (Note: file GAMMA will always be listed before file gamma). </dd>
  626.  
  627.       <dt><a name="indexoptions.ignoreclient" id="indexoptions.ignoreclient">IgnoreClient</a></dt>
  628.  
  629.       <dd>This option causes <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to ignore all
  630.       query variables from the client, including sort order (implies
  631.       <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code>.)</dd>
  632.  
  633.       <dt><a name="indexoptions.namewidth" id="indexoptions.namewidth">NameWidth=[<var>n</var>
  634.                | *]</a></dt>
  635.  
  636.       <dd>The <code>NameWidth</code> keyword allows you to specify the width
  637.       of the filename column in bytes.</dd>
  638.  
  639.       <dd><code>-NameWidth</code> (or unset) allows <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code> to calculate the best width.</dd>
  640.  
  641.       <dd><code>NameWidth=<var>n</var></code> fixes the column width to
  642.       <var>n</var> bytes wide.</dd>
  643.  
  644.       <dd><code>NameWidth=*</code> grows the column to the necessary
  645.       width.</dd>
  646.  
  647.       <dt><a name="indexoptions.scanhtmltitles" id="indexoptions.scanhtmltitles">ScanHTMLTitles</a></dt>
  648.  
  649.       <dd>This enables the extraction of the title from HTML documents
  650.       for fancy indexing. If the file does not have a description
  651.       given by <code class="directive"><a href="#adddescription">AddDescription</a></code>
  652.       then httpd will read the document for the value of the
  653.       <code>title</code> element. This is CPU and disk intensive.</dd>
  654.  
  655.       <dt><a name="indexoptions.showforbidden" id="indexoptions.showforbidden">ShowForbidden</a></dt>
  656.  
  657.       <dd>If specified, Apache will show files normally hidden because
  658.       the subrequest returned HTTP_UNAUTHORIZED or HTTP_FORBIDDEN</dd>
  659.  
  660.       <dt><a name="indexoptions.suppresscolumnsorting" id="indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></dt>
  661.  
  662.       <dd>If specified, Apache will not make the column headings in a
  663.       FancyIndexed directory listing into links for sorting. The
  664.       default behavior is for them to be links; selecting the
  665.       column heading will sort the directory listing by the values
  666.       in that column. <strong>Prior to Apache 2.0.23, this also
  667.       disabled parsing the Query Arguments for the sort
  668.       string.</strong> That behavior is now controlled by <a href="#indexoptions.ignoreclient">IndexOptions
  669.       IgnoreClient</a> in Apache 2.0.23.</dd>
  670.  
  671.       <dt><a name="indexoptions.suppressdescription" id="indexoptions.suppressdescription">SuppressDescription</a></dt>
  672.  
  673.       <dd>This will suppress the file description in fancy indexing
  674.       listings. By default, no file descriptions are defined, and
  675.       so the use of this option will regain 23 characters of screen
  676.       space to use for something else. See <code class="directive"><a href="#adddescription">AddDescription</a></code> for information about setting the file
  677.       description. See also the <code><a href="#indexoptions.descriptionwidth">DescriptionWidth</a></code>
  678.       index option to limit the size of the description column.</dd>
  679.  
  680.       <dt><a name="indexoptions.suppresshtmlpreamble" id="indexoptions.suppresshtmlpreamble">SuppressHTMLPreamble</a></dt>
  681.  
  682.       <dd>If the directory actually contains a file specified by the
  683.       <code class="directive"><a href="#headername">HeaderName</a></code>
  684.       directive, the module usually includes the contents of the file
  685.       after a standard HTML preamble (<code><html></code>,
  686.       <code><head></code>, <em>et cetera</em>). The
  687.       <code>SuppressHTMLPreamble</code> option disables this behaviour,
  688.       causing the module to start the display with the header file
  689.       contents. The header file must contain appropriate HTML instructions
  690.       in this case. If there is no header file, the preamble is generated
  691.       as usual.</dd>
  692.  
  693.       <dt><a name="indexoptions.suppressicon" id="indexoptions.suppressicon">SuppressIcon</a> (<em>Apache
  694.       2.0.23 and later</em>)</dt>
  695.  
  696.       <dd>This will suppress the icon in fancy indexing listings.
  697.       Combining both <code>SuppressIcon</code> and
  698.       <code>SuppressRules</code> yields proper HTML 3.2 output, which
  699.       by the final specification prohibits <code>img</code> and
  700.       <code>hr</code> elements from the <code>pre</code> block (used to
  701.       format FancyIndexed listings.)</dd>
  702.  
  703.       <dt><a name="indexoptions.suppresslastmodified" id="indexoptions.suppresslastmodified">SuppressLastModified</a></dt>
  704.  
  705.       <dd>This will suppress the display of the last modification date,
  706.       in fancy indexing listings.</dd>
  707.  
  708.       <dt><a name="indexoptions.suppressrules" id="indexoptions.suppressrules">SuppressRules</a>
  709.       (<em>Apache 2.0.23 and later</em>)</dt>
  710.  
  711.       <dd>This will suppress the horizontal rule lines (<code>hr</code>
  712.       elements) in directory listings. Combining both <code>SuppressIcon</code> and
  713.       <code>SuppressRules</code> yields proper HTML 3.2 output, which
  714.       by the final specification prohibits <code>img</code> and
  715.       <code>hr</code> elements from the <code>pre</code> block (used to
  716.       format FancyIndexed listings.)</dd>
  717.  
  718.       <dt><a name="indexoptions.suppresssize" id="indexoptions.suppresssize">SuppressSize</a></dt>
  719.  
  720.       <dd>This will suppress the file size in fancy indexing listings.</dd>
  721.  
  722.       <dt><a name="indexoptions.trackmodified" id="indexoptions.trackmodified">TrackModified</a> (<em>Apache
  723.       2.0.23 and later</em>)</dt>
  724.  
  725.       <dd>This returns the Last-Modified and ETag values for the listed
  726.       directory in the HTTP header. It is only valid if the
  727.       operating system and file system return appropriate stat()
  728.       results. Some Unix systems do so, as do OS2's JFS and Win32's
  729.       NTFS volumes. OS2 and Win32 FAT volumes, for example, do not.
  730.       Once this feature is enabled, the client or proxy can track
  731.       changes to the list of files when they perform a <code>HEAD</code>
  732.       request. Note some operating systems correctly track new and
  733.       removed files, but do not track changes for sizes or dates of
  734.       the files within the directory. <strong>Changes to the size
  735.       or date stamp of an existing file will not update the
  736.       Last-Modified header on all Unix platforms.</strong> If this
  737.       is a concern, leave this option disabled.</dd>
  738.  
  739.       <dt><a name="indexoptions.versionsort" id="indexoptions.versionsort">VersionSort</a>
  740.       (<em>Apache 2.0a3 and later</em>)</dt>
  741.  
  742.       <dd>The <code>VersionSort</code> keyword causes files containing
  743.       version numbers to sort in a natural way. Strings are sorted as
  744.       usual, except that substrings of digits in the name and
  745.       description are compared according to their numeric value.
  746.  
  747.       <div class="example"><h3>Example:</h3><p><code>
  748.         foo-1.7<br />
  749.         foo-1.7.2<br />
  750.         foo-1.7.12<br />
  751.         foo-1.8.2<br />
  752.         foo-1.8.2a<br />
  753.         foo-1.12
  754.       </code></p></div>
  755.  
  756.       <p>If the number starts with a zero, then it is considered to
  757.       be a fraction:</p>
  758.  
  759.       <div class="example"><p><code>
  760.         foo-1.001<br />
  761.         foo-1.002<br />
  762.         foo-1.030<br />
  763.         foo-1.04
  764.       </code></p></div>
  765.       </dd>
  766.  
  767.       <dt><a name="indexoptions.xhtml" id="indexoptions.xhtml">XHTML</a>
  768.       (<em>Apache 2.0.49 and later</em>)</dt>
  769.  
  770.       <dd>The <code>XHTML</code> keyword forces <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>
  771.       to emit XHTML 1.0 code instead of HTML 3.2.</dd>
  772.     </dl>
  773.  
  774.    
  775.    <dl><dt>Incremental IndexOptions</dt>
  776.    <dd>
  777.      <p>Apache 1.3.3 introduced some significant changes in the
  778.      handling of <code class="directive">IndexOptions</code> directives. In
  779.      particular:</p>
  780.  
  781.      <ul>
  782.      <li>Multiple <code class="directive">IndexOptions</code> directives for a
  783.      single directory are now merged together. The result of:
  784.  
  785.      <div class="example"><p><code>
  786.        <Directory /foo>
  787.        <span class="indent">
  788.          IndexOptions HTMLTable<br />
  789.          IndexOptions SuppressColumnsorting
  790.        </span>
  791.        </Directory>
  792.      </code></p></div>
  793.  
  794.      <p>will be the equivalent of</p>
  795.  
  796.      <div class="example"><p><code>
  797.        IndexOptions HTMLTable SuppressColumnsorting
  798.      </code></p></div>
  799.      </li>
  800.  
  801.      <li>The addition of the incremental syntax (<em>i.e.</em>, prefixing
  802.      keywords with <code>+</code> or <code>-</code>).</li>
  803.      </ul>
  804.  
  805.      <p>Whenever a '+' or '-' prefixed keyword is encountered, it
  806.      is applied to the current <code class="directive">IndexOptions</code>
  807.      settings (which may have been inherited from an upper-level
  808.      directory). However, whenever an unprefixed keyword is processed, it
  809.      clears all inherited options and any incremental settings encountered
  810.      so far. Consider the following example:</p>
  811.  
  812.      <div class="example"><p><code>
  813.        IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing<br />
  814.        IndexOptions +SuppressSize
  815.      </code></p></div>
  816.  
  817.      <p>The net effect is equivalent to <code>IndexOptions FancyIndexing
  818.      +SuppressSize</code>, because the unprefixed <code>FancyIndexing</code>
  819.      discarded the incremental keywords before it, but allowed them to
  820.      start accumulating again afterward.</p>
  821.  
  822.      <p>To unconditionally set the <code class="directive">IndexOptions</code> for
  823.      a particular directory, clearing the inherited settings, specify
  824.      keywords without any <code>+</code> or <code>-</code> prefixes.</p>
  825.    </dd>
  826.    </dl>
  827.  
  828. </div>
  829. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  830. <div class="directive-section"><h2><a name="IndexOrderDefault" id="IndexOrderDefault">IndexOrderDefault</a> <a name="indexorderdefault" id="indexorderdefault">Directive</a></h2>
  831. <table class="directive">
  832. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Sets the default ordering of the directory index</td></tr>
  833. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexOrderDefault Ascending|Descending
  834. Name|Date|Size|Description</code></td></tr>
  835. <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>IndexOrderDefault Ascending Name</code></td></tr>
  836. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  837. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  838. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  839. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  840. </table>
  841.     <p>The <code class="directive">IndexOrderDefault</code> directive is used
  842.     in combination with the <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code> index option. By default, fancyindexed
  843.     directory listings are displayed in ascending order by filename; the
  844.     <code class="directive">IndexOrderDefault</code> allows you to change this
  845.     initial display order.</p>
  846.  
  847.     <p><code class="directive">IndexOrderDefault</code> takes two
  848.     arguments. The first must be either <code>Ascending</code> or
  849.     <code>Descending</code>, indicating the direction of the sort.
  850.     The second argument must be one of the keywords <code>Name</code>,
  851.     <code>Date</code>, <code>Size</code>, or <code>Description</code>,
  852.     and identifies the primary key. The secondary key is
  853.     <em>always</em> the ascending filename.</p>
  854.  
  855.     <p>You can force a directory listing to only be displayed in a
  856.     particular order by combining this directive with the <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code> index option; this will prevent
  857.     the client from requesting the directory listing in a different
  858.     order.</p>
  859.  
  860. </div>
  861. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  862. <div class="directive-section"><h2><a name="IndexStyleSheet" id="IndexStyleSheet">IndexStyleSheet</a> <a name="indexstylesheet" id="indexstylesheet">Directive</a></h2>
  863. <table class="directive">
  864. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Adds a CSS stylesheet to the directory index</td></tr>
  865. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>IndexStyleSheet <var>url-path</var></code></td></tr>
  866. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  867. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  868. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  869. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  870. </table>
  871.     <p>The <code class="directive">IndexStyleSheet</code> directive sets the name of
  872.     the file that will be used as the CSS for the index listing.
  873.     </p>
  874.     <div class="example"><h3>Example</h3><p><code>
  875.       
  876.       IndexStyleSheet "/css/style.css"
  877.     </code></p></div>
  878.  
  879. </div>
  880. <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
  881. <div class="directive-section"><h2><a name="ReadmeName" id="ReadmeName">ReadmeName</a> <a name="readmename" id="readmename">Directive</a></h2>
  882. <table class="directive">
  883. <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Name of the file that will be inserted at the end
  884. of the index listing</td></tr>
  885. <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ReadmeName <var>filename</var></code></td></tr>
  886. <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host, directory, .htaccess</td></tr>
  887. <tr><th><a href="directive-dict.html#Override">Override:</a></th><td>Indexes</td></tr>
  888. <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Base</td></tr>
  889. <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_autoindex</td></tr>
  890. </table>
  891.     <p>The <code class="directive">ReadmeName</code> directive sets the name
  892.     of the file that will be appended to the end of the index
  893.     listing. <var>Filename</var> is the name of the file to include, and
  894.     is taken to be relative to the location being indexed. If
  895.     <var>Filename</var> begins with a slash, it will be taken to be
  896.     relative to the <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>.
  897.     </p>
  898.  
  899.     <div class="example"><h3>Example</h3><p><code>
  900.       ReadmeName FOOTER.html
  901.     </code></p></div>
  902.  
  903.     <div class="example"><h3>Example 2</h3><p><code>
  904.       ReadmeName /include/FOOTER.html
  905.     </code></p></div>
  906.  
  907.     <p>See also <code class="directive"><a href="#headername">HeaderName</a></code>, where this behavior is described in greater
  908.     detail.</p>
  909.  
  910. </div>
  911. </div>
  912. <div class="bottomlang">
  913. <p><span>Available Languages: </span><a href="../en/mod/mod_autoindex.html" title="English"> en </a> |
  914. <a href="../ja/mod/mod_autoindex.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
  915. <a href="../ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
  916. </div><div id="footer">
  917. <p class="apache">Copyright 2007 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
  918. <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
  919. </body></html>