From: Daniel Gruno Date: Sun, 24 Jun 2012 13:13:10 +0000 (+0000) Subject: Add a link to sections.html and change the example to accomodate suggestions in PR20414. X-Git-Tag: 2.5.0-alpha~6702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8979355caa6cea27dead3edcba196400eda94ab;p=thirdparty%2Fapache%2Fhttpd.git Add a link to sections.html and change the example to accomodate suggestions in PR20414. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1353263 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml index b567507c8fa..f404abab8b9 100644 --- a/docs/manual/mod/mod_dir.xml +++ b/docs/manual/mod/mod_dir.xml @@ -103,19 +103,28 @@ a directory as well.

Note: Multiple DirectoryIndex - directives within the same context will add to the list of resources to - look for rather than replace: + directives within the same context will add + to the list of resources to look for rather than replace:

-# 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. +<Directory /foo> + DirectoryIndex index.html + DirectoryIndex index.php +</Directory> -# 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. +<Directory /foo> + DirectoryIndex index.html index.php +</Directory> -# 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. +<Directory /foo> + DirectoryIndex index.html + DirectoryIndex disabled + DirectoryIndex index.php +</Directory>