httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
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

URL: http://svn.apache.org/viewvc?rev=1353263&view=rev
Log:
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

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=1353263&r1=1353262&r2=1353263&view=diff
==============================================================================
--- 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
to 
-    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:
     </p>
     <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
+&lt;/Directory&gt;
 
-# This will add dynamic files to the list rather than replace it
-DirectoryIndex index.php index.pl 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
+&lt;/Directory&gt;
 
-# To replace the list, we must first reset it, then set the new list
-DirectoryIndex disabled
-DirectoryIndex index.py
+# 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
+&lt;/Directory&gt;
     </highlight>
 
 </usage>



Mime
View raw message