From: Rich Bowen
Date: Fri, 26 Apr 2013 01:35:28 +0000 (+0000)
Subject: DirectoryIndex and mod_autoindex
X-Git-Tag: 2.4.5~388
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0ffe24f160ae2fdd6b5cd96b51bf2e65a8aceb8;p=apache
DirectoryIndex and mod_autoindex
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1476015 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/urlmapping.xml b/docs/manual/urlmapping.xml
index 9e5f6c10f3..10c75b3837 100644
--- a/docs/manual/urlmapping.xml
+++ b/docs/manual/urlmapping.xml
@@ -36,6 +36,7 @@
mod_actions
mod_alias
+mod_autoindex
mod_dir
mod_imagemap
mod_negotiation
@@ -49,6 +50,7 @@
Alias
AliasMatch
CheckSpelling
+DirectoryIndex
DocumentRoot
ErrorDocument
Options
@@ -84,6 +86,25 @@
in the file /var/www/html/fish/guppies.html
being
served to the requesting client.
+ If a directory is requested (i.e. a path ending with
+ /
), the file served from that directory is defined by
+ the DirectoryIndex directive.
+ For example, if DocumentRoot
were set as above, and
+ you were to set:
+
+ DirectoryIndex index.html index.php
+
+ Then a request for http://www.example.com/fish/
will
+ cause httpd to attempt to serve the file
+ /var/www/html/fish/index.html
. In the event that
+ that file didn't exist, it will next attempt to serve file file
+ /var/www/html/fish/index.php
.
+
+ If neither of these files existed, the next step would be to
+ attempt to provide a directory index, if
+ mod_autoindex were loaded and configured to permit
+ that.
+
httpd is also capable of Virtual
Hosting, where the server receives requests for more than one
host. In this case, a different