mirror of
https://github.com/apache/httpd.git
synced 2025-05-17 15:21:13 +03:00
Sorry for the huge diff. It seems that switching from Xalan-j to xalan-c causes the attributes to get reordered. Suggestions for improvements to the build system would be greatly appreciated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94399 13f79535-47bb-0310-9956-ffa450edef68
57 lines
4.8 KiB
HTML
57 lines
4.8 KiB
HTML
<html xmlns="http://www.w3.org/TR/xhtml1/strict"><head><!--
|
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
This file is generated from xml source: DO NOT EDIT
|
|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
|
--><title>mod_dir - Apache HTTP Server</title><link rel="stylesheet" type="text/css" href="../style/manual.css"/></head><body><blockquote><div align="center"><img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]"/><h3>Apache HTTP Server Version 2.0</h3></div><h1 align="center">Apache Module mod_dir</h1><table bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td><table bgcolor="#ffffff"><tr><td valign="top"><span class="help">Description:</span></td><td>Provides for "trailing slash" redirects and
|
|
serving directory index files</td></tr><tr><td><a class="help" href="module-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module Identifier:</a></td><td>dir_module</td></tr></table></td></tr></table><h2>Summary</h2>
|
|
<p>The index of a directory can come from one of two sources:</p>
|
|
|
|
<ul>
|
|
<li>A file written by the user, typically called
|
|
<code>index.html</code>. The <a class="directive" href="#directoryindex"><code class="directive">DirectoryIndex</code></a> directive sets the
|
|
name of this file. This is controlled by
|
|
<code><a href="mod_dir.html">mod_dir</a></code>.</li>
|
|
|
|
<li>Otherwise, a listing generated by the server. This is
|
|
provided by <code><a href="mod_autoindex.html">mod_autoindex</a></code>.</li>
|
|
</ul>
|
|
<p>The two functions are separated so that you can completely
|
|
remove (or replace) automatic index generation should you want
|
|
to.</p>
|
|
|
|
<p>A "trailing slash" redirect is issued when the server
|
|
receives a request for a URL
|
|
<code>http://servername/foo/dirname</code> where
|
|
<code>dirname</code> is a directory. Directories require a
|
|
trailing slash, so <code><a href="mod_dir.html">mod_dir</a></code> issues a redirect to
|
|
<code>http://servername/foo/dirname/</code>.</p>
|
|
<h2>Directives</h2><ul><li><a href="#directoryindex">DirectoryIndex</a></li></ul><hr/><h2><a name="DirectoryIndex">DirectoryIndex</a> <a name="directoryindex">Directive</a></h2><table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1"><tr><td><table bgcolor="#ffffff"><tr><td><strong>Description: </strong></td><td>List of resources to look for when the client requests
|
|
a directory</td></tr><tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a></td><td>DirectoryIndex
|
|
<em>local-url</em> [<em>local-url</em>] ...</td></tr><tr><td><a class="help" href="directive-dict.html#Default">Default:</a></td><td><code>DirectoryIndex index.html</code></td></tr><tr><td><a class="help" href="directive-dict.html#Context">Context:</a></td><td>server config, virtual host, directory, .htaccess</td></tr><tr><td><a class="help" href="directive-dict.html#Override">Override:</a></td><td>Indexes</td></tr><tr><td><a class="help" href="directive-dict.html#Status">Status:</a></td><td>Base</td></tr><tr><td><a class="help" href="directive-dict.html#Module">Module:</a></td><td>mod_dir</td></tr></table></td></tr></table>
|
|
<p>The <code class="directive">DirectoryIndex</code> directive sets the
|
|
list of resources to look for, when the client requests an index
|
|
of the directory by specifying a / at the end of the a directory
|
|
name. <em>Local-url</em> is the (%-encoded) URL of a document on
|
|
the server relative to the requested directory; it is usually the
|
|
name of a file in the directory. Several URLs may be given, in
|
|
which case the server will return the first one that it finds. If
|
|
none of the resources exist and the <code>Indexes</code> option is
|
|
set, the server will generate its own listing of the
|
|
directory.</p>
|
|
|
|
<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><p align="center"><strong>Example</strong></p><code>
|
|
DirectoryIndex index.html
|
|
</code></td></tr></table></blockquote>
|
|
|
|
<p>then a request for <code>http://myserver/docs/</code> would
|
|
return <code>http://myserver/docs/index.html</code> if it
|
|
exists, or would list the directory if it did not.</p>
|
|
|
|
<p>Note that the documents do not need to be relative to the
|
|
directory;</p>
|
|
|
|
<blockquote><table cellpadding="10"><tr><td bgcolor="#eeeeee"><code>DirectoryIndex index.html index.txt /cgi-bin/index.pl</code></td></tr></table></blockquote>
|
|
<p>would cause the CGI script <code>/cgi-bin/index.pl</code> to be
|
|
executed if neither <code>index.html</code> or
|
|
<code>index.txt</code> existed in a directory.</p>
|
|
<hr/><h3 align="center">Apache HTTP Server Version 2.0</h3><a href="./"><img src="../images/index.gif" alt="Index"/></a><a href="../"><img src="../images/home.gif" alt="Home"/></a></blockquote></body></html> |