httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1353250 - /httpd/httpd/trunk/docs/manual/mod/mod_dir.xml
Date Sun, 24 Jun 2012 11:49:00 GMT
Author: humbedooh
Date: Sun Jun 24 11:49:00 2012
New Revision: 1353250

URL: http://svn.apache.org/viewvc?rev=1353250&view=rev
Log:
Add a note about DirectoryIndex adding resources instead of replacing them when called twice
or more within the same context.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_dir.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_dir.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_dir.xml?rev=1353250&r1=1353249&r2=1353250&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_dir.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_dir.xml Sun Jun 24 11:49:00 2012
@@ -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>
 



Mime
View raw message