From 00f21ebdcbf84a04334b8631a3cbd97f7fd2cc2a Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Mon, 25 Jun 2012 13:04:01 +0000 Subject: [PATCH] Backport r1353250/r1353263/r1353503 from trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1353508 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_dir.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml index 8265dfde18..caf5197e33 100644 --- a/docs/manual/mod/mod_dir.xml +++ b/docs/manual/mod/mod_dir.xml @@ -102,6 +102,31 @@ a directory literally if it has any arguments before or after it, even if they are "disabled" as well.

+

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

+ +# 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> + +# Example B: This is identical to example A, except it's done with a single directive. +<Directory /foo> + DirectoryIndex index.html index.php +</Directory> + +# Example C: To replace the list, you must explicitly reset it first: +# In this example, only index.php will remain as an index resource. +<Directory /foo> + DirectoryIndex index.html + DirectoryIndex disabled + DirectoryIndex index.php +</Directory> + + -- 2.50.1