From: Rich Bowen Date: Fri, 16 Oct 2009 13:55:17 +0000 (+0000) Subject: Adds the frequently-requested example of relaxing authentication for a X-Git-Tag: 2.3.3~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d47d2cc415da1671d7cb8e3502f3ed645914de6;p=thirdparty%2Fapache%2Fhttpd.git Adds the frequently-requested example of relaxing authentication for a subdirectory. Whether this is actually a *good* idea is left as an exercise for the reader. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@825898 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_access_compat.html.en b/docs/manual/mod/mod_access_compat.html.en index a04c297f6bb..a91adab23fa 100644 --- a/docs/manual/mod/mod_access_compat.html.en +++ b/docs/manual/mod/mod_access_compat.html.en @@ -414,6 +414,26 @@ later Satisfy Any

+

+ Another frequent use of the Satisfy directive + is to relax access restrictions for a subdirectory: +

+ +

+ <Directory /var/www/private>
+ Require valid-user
+ </Directory>
+
+ <Directory /var/www/private/public>
+ Allow from all
+ Satisfy Any
+ </Directory> +

+ +

In the above example, authentication will be required for the + /var/www/private directory, but will not be required + for the /var/www/private/public directory.

+

Since version 2.0.51 Satisfy directives can be restricted to particular methods by <Limit> and <LimitExcept> sections.

diff --git a/docs/manual/mod/mod_access_compat.xml b/docs/manual/mod/mod_access_compat.xml index 4b9fca2e695..7ce830cec06 100644 --- a/docs/manual/mod/mod_access_compat.xml +++ b/docs/manual/mod/mod_access_compat.xml @@ -433,6 +433,26 @@ later Satisfy Any +

+ Another frequent use of the Satisfy directive + is to relax access restrictions for a subdirectory: +

+ + + <Directory /var/www/private>
+ Require valid-user
+ </Directory>
+
+ <Directory /var/www/private/public>
+ Allow from all
+ Satisfy Any
+ </Directory> +
+ +

In the above example, authentication will be required for the + /var/www/private directory, but will not be required + for the /var/www/private/public directory.

+

Since version 2.0.51 Satisfy directives can be restricted to particular methods by Limit and