You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/06/25 15:18:17 UTC

svn commit: r1353522 - /httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml

Author: humbedooh
Date: Mon Jun 25 13:18:16 2012
New Revision: 1353522

URL: http://svn.apache.org/viewvc?rev=1353522&view=rev
Log:
Backport as much as possible from  the changes to 2.4/trunk.

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml

Modified: httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml?rev=1353522&r1=1353521&r2=1353522&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/mod/mod_dir.xml Mon Jun 25 13:18:16 2012
@@ -94,6 +94,24 @@ a directory</description>
     <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>
+
+    <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>
+
+    <example>
+    <pre># 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;</pre>
+    </example>
 </usage>
 </directivesynopsis>