Return-Path:
Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org
Received: (qmail 10359 invoked by uid 500); 21 Apr 2003 00:29:46 -0000
Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm
Precedence: bulk
Reply-To: dev@httpd.apache.org
list-help:
list-unsubscribe:
list-post:
Delivered-To: mailing list cvs@httpd.apache.org
Received: (qmail 10348 invoked by uid 500); 21 Apr 2003 00:29:45 -0000
Delivered-To: apmail-httpd-2.0-cvs@apache.org
Date: 21 Apr 2003 00:29:45 -0000
Message-ID: <20030421002945.73039.qmail@icarus.apache.org>
From: slive@apache.org
To: httpd-2.0-cvs@apache.org
Subject: cvs commit: httpd-2.0/docs/manual/mod core.xml
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
slive 2003/04/20 17:29:45
Modified: docs/manual/mod Tag: APACHE_2_0_BRANCH core.xml
Log:
Backport:
Add note about when to use . This dupes what is already discussed
in sections.html, but it is important enough to repeat.
Revision Changes Path
No revision
No revision
1.46.2.14 +18 -4 httpd-2.0/docs/manual/mod/core.xml
Index: core.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/mod/core.xml,v
retrieving revision 1.46.2.13
retrieving revision 1.46.2.14
diff -u -d -b -u -r1.46.2.13 -r1.46.2.14
--- core.xml 15 Apr 2003 22:56:31 -0000 1.46.2.13
+++ core.xml 21 Apr 2003 00:29:44 -0000 1.46.2.14
@@ -1700,10 +1700,24 @@
.htaccess
files are read, and after the Files sections.
- Note that URLs do not have to line up with the filesystem at
- all, it should be emphasized that Location operates completely
- outside the filesystem.
+ Location sections operate
+ completely outside the filesystem. This has several consequences.
+ Most importantly, Location
+ directives should not be used to control access to filesystem
+ locations. Since several different URLs may map to the same
+ filesystem location, such access controls may by circumvented.
+
+ When to use Location
+
+ Use Location to apply
+ directives to content that lives outside the filesystem. For
+ content that lives in the filesystem, use Directory and Files. An exception is
+ <Location />
, which is an easy way to
+ apply a configuration to the entire server.
+
For all origin (non-proxy) requests, the URL to be matched is a
URL-path of the form /path/
. No scheme, hostname,