diff options
author | Joshua Slive <slive@apache.org> | 2002-03-04 21:24:05 +0000 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2002-03-04 21:24:05 +0000 |
commit | a3e3a4e58dd8f7996be44fded6444c9a0625a7e5 (patch) | |
tree | 27cd834f13f5657da9e8cfb9bac92da02bc1cfcc /docs/manual/mod/mod_dir.xml | |
parent | b658e541385b13372f961fea8752ef6da2ff1a66 (diff) | |
download | httpd-a3e3a4e58dd8f7996be44fded6444c9a0625a7e5.tar.gz |
mod_dir xml conversion.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_dir.xml')
-rw-r--r-- | docs/manual/mod/mod_dir.xml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml new file mode 100644 index 0000000000..850aa63872 --- /dev/null +++ b/docs/manual/mod/mod_dir.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<?xml-stylesheet type="text/xsl" href="../style/manual.xsl"?> +<modulesynopsis> + +<name>mod_dir</name> +<description>Provides for "trailing slash" redirects and + serving directory index files.</description> +<status>Base</status> +<sourcefile>mod_dir.c</sourcefile> +<identifier>dir_module</identifier> + +<summary> + <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 <directive module="mod_dir" + >DirectoryIndex</directive> directive sets the + name of this file. This is controlled by + <module>mod_dir</module>.</li> + + <li>Otherwise, a listing generated by the server. This is + provided by <module>mod_autoindex</module>.</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 <module>mod_dir</module> issues a redirect to + <code>http://servername/foo/dirname/</code>.</p> +</summary> + +<directivesynopsis> +<description>List of resources to look for when the client requests +a directory</description> +<name>DirectoryIndex</name> +<syntax>DirectoryIndex + <em>local-url</em> [<em>local-url</em>] ...</syntax> +<default>DirectoryIndex index.html</default> +<contextlist><context>server config</context> +<context>virtual host</context> +<context>directory</context> +<context>.htaccess</context> +</contextlist> +<override>Indexes</override> + +<usage> + <p>The <directive>DirectoryIndex</directive> 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> + +<example><title>Example</title> +DirectoryIndex index.html +</example> + + <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> + +<example>DirectoryIndex index.html index.txt /cgi-bin/index.pl</example> + <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> +</usage> +</directivesynopsis> + +</modulesynopsis>
\ No newline at end of file |