From 4a336a5b117419c33c29eadd6409c69df78cd586 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 20 Jul 2013 22:21:25 +0200 Subject: Imported Upstream version 2.4.6 --- docs/manual/urlmapping.html.en | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'docs/manual/urlmapping.html.en') diff --git a/docs/manual/urlmapping.html.en b/docs/manual/urlmapping.html.en index 4247e6dd..939d1aa4 100644 --- a/docs/manual/urlmapping.html.en +++ b/docs/manual/urlmapping.html.en @@ -46,7 +46,7 @@

Related Modules and Directives

- +
top

DocumentRoot

@@ -66,6 +66,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 does not exist, it will next attempt to serve the file + /var/www/html/fish/index.php.

+ +

If neither of these files existed, the next step is to + attempt to provide a directory index, if + mod_autoindex is 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 DocumentRoot can be specified for each @@ -308,8 +327,8 @@ proxying scenarios can be handled.

mod_dir provides FallbackResource, which can be used to map virtual URIs to a real resource, which then serves them. This is a very - useful replace to mod_rewrite when implementing - a 'front controler'

+ useful replacement for mod_rewrite when implementing + a 'front controller'

If all attempts to locate the content fail, httpd returns an error page with HTTP status code 404 (file not found). The -- cgit v1.2.3