httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1353263 - /httpd/httpd/trunk/docs/manual/mod/mod_dir.xml
Date Sun, 24 Jun 2012 13:13:11 GMT
Author: humbedooh
Date: Sun Jun 24 13:13:10 2012
New Revision: 1353263

Add a link to sections.html and change the example to accomodate suggestions in PR20414.


Modified: httpd/httpd/trunk/docs/manual/mod/mod_dir.xml
--- httpd/httpd/trunk/docs/manual/mod/mod_dir.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_dir.xml Sun Jun 24 13:13:10 2012
@@ -103,19 +103,28 @@ a directory</description>
     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
-    look for rather than replace:
+    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:
     <highlight language="config">
-# Set the index files to look for
-DirectoryIndex index.html index.htm
+# 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
-# This will add dynamic files to the list rather than replace it
-DirectoryIndex index.php index.lua
+# 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
-# To replace the list, we must first reset it, then set the new list
-DirectoryIndex disabled
+# Example C: To replace the list, you must explicitly do so:
+# In this example, only index.php will remain as an index resource.
+&lt;Directory /foo&gt;
+    DirectoryIndex index.html
+    DirectoryIndex disabled
+    DirectoryIndex index.php

View raw message