From b6c4e590ae422def3b859a830b1bd36cb083bb7f Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Sun, 24 Jun 2012 11:49:00 +0000 Subject: [PATCH] Add a note about DirectoryIndex adding resources instead of replacing them when called twice or more within the same context. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1353250 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_dir.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml index 8265dfde18f..b567507c8fa 100644 --- a/docs/manual/mod/mod_dir.xml +++ b/docs/manual/mod/mod_dir.xml @@ -102,6 +102,22 @@ 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: +

+ +# Set the index files to look for +DirectoryIndex index.html index.htm + +# This will add dynamic files to the list rather than replace it +DirectoryIndex index.php index.pl index.lua + +# To replace the list, we must first reset it, then set the new list +DirectoryIndex disabled +DirectoryIndex index.py + + -- 2.47.3