]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
doc for DirectoryIndexRedirect
authorEric Covener <covener@apache.org>
Fri, 15 Jul 2011 21:47:15 +0000 (21:47 +0000)
committerEric Covener <covener@apache.org>
Fri, 15 Jul 2011 21:47:15 +0000 (21:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1147328 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dir.xml

index 2a69d1db343c145ea32626a252cd04e42f94d054..346e2977e73f868647e749c4296e3e4a9a1d5b62 100644 (file)
@@ -103,6 +103,38 @@ a directory</description>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>DirectoryIndexRedirect</name>
+<description>Configures an external redirect for directory indexes.
+</description>
+<syntax>DirectoryIndexRedirect on | off | permanent | temp | seeother | 
+<var>3xx-code</var>
+</syntax>
+<default>DirectoryIndexRedirect off</default>
+<contextlist><context>server config</context><context>virtual host</context>
+<context>directory</context><context>.htaccess</context></contextlist>
+<override>Indexes</override>
+<compatability>Available in version 2.3.14 and later</compatability>
+
+<usage>
+    <p>By default, the <directive>DirectoryIndex</directive> is selected
+    and returned transparently to the client.  <directive
+    >DirectoryIndexRedirect</directive> causes an external redirect
+    to instead be issued.</p>
+
+    <example><title>Example</title>
+      DirectoryIndexRedirect on
+    </example>
+
+    <p>A request for <code>http://example.com/docs/</code> would
+    return a temporary redirect to <code
+    >http://example.com/docs/index.html</code> 
+    if it exists.</p>
+
+</usage>
+</directivesynopsis>
+
+
 <directivesynopsis>
 <name>DirectorySlash</name>
 <description>Toggle trailing slash redirects on or off</description>