]> granicus.if.org Git - apache/commitdiff
Add a note about DirectoryIndex adding resources instead of replacing them when calle...
authorDaniel Gruno <humbedooh@apache.org>
Sun, 24 Jun 2012 11:49:00 +0000 (11:49 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Sun, 24 Jun 2012 11:49:00 +0000 (11:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1353250 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dir.xml

index 8265dfde18f36ae37a85113ccd939b404147d42e..b567507c8fa428c65fbeacbdde9c458b97ba5d52 100644 (file)
@@ -102,6 +102,22 @@ 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 <em>same context</em> will add to the list of resources to 
+    look for rather than replace:
+    </p>
+    <highlight language="config">
+# Set the index files to look for
+DirectoryIndex index.html index.htm
+
+# This will add dynamic files to the list rather than replace it
+DirectoryIndex index.php index.pl index.lua
+
+# To replace the list, we must first reset it, then set the new list
+DirectoryIndex disabled
+DirectoryIndex index.py
+    </highlight>
+
 </usage>
 </directivesynopsis>