From: Daniel Gruno Date: Sun, 24 Jun 2012 11:49:00 +0000 (+0000) Subject: Add a note about DirectoryIndex adding resources instead of replacing them when calle... X-Git-Tag: 2.5.0-alpha~6705 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b48be121cd19503cd08a419e6bc4a969afb3509d;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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 + +