From: Daniel Gruno
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>diff --git a/docs/manual/mod/mod_dir.xml.ja b/docs/manual/mod/mod_dir.xml.ja index 0ddd5e43b45..d70c32fd5cc 100644 --- a/docs/manual/mod/mod_dir.xml.ja +++ b/docs/manual/mod/mod_dir.xml.ja @@ -1,7 +1,7 @@ - + + +