]> granicus.if.org Git - apache/commitdiff
Backport r1353250/r1353263/r1353503 from trunk.
authorDaniel Gruno <humbedooh@apache.org>
Mon, 25 Jun 2012 13:04:01 +0000 (13:04 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Mon, 25 Jun 2012 13:04:01 +0000 (13:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1353508 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dir.xml

index 8265dfde18f36ae37a85113ccd939b404147d42e..caf5197e330f641f6f1bf1d1def0fd5f1d7bdb42 100644 (file)
@@ -102,6 +102,31 @@ a directory</description>
     literally if it has any arguments before or after it, even if they are "disabled"
     as well.</p>
 
+    <p><strong>Note:</strong> Multiple <directive>DirectoryIndex</directive> 
+    directives within the <a href="../sections.html"><em>same context</em></a> will add 
+    to the list of resources to look for rather than replace:
+    </p>
+    <highlight language="config">
+# Example A: Set index.html as an index page, then add index.php to that list as well.
+&lt;Directory /foo&gt;
+    DirectoryIndex index.html
+    DirectoryIndex index.php
+&lt;/Directory&gt;
+
+# Example B: This is identical to example A, except it's done with a single directive.
+&lt;Directory /foo&gt;
+    DirectoryIndex index.html index.php
+&lt;/Directory&gt;
+
+# Example C: To replace the list, you must explicitly reset it first:
+# In this example, only index.php will remain as an index resource.
+&lt;Directory /foo&gt;
+    DirectoryIndex index.html
+    DirectoryIndex disabled
+    DirectoryIndex index.php
+&lt;/Directory&gt;
+    </highlight>
+
 </usage>
 </directivesynopsis>