diff options
author | Rich Bowen <rbowen@apache.org> | 2009-10-16 15:55:17 +0200 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2009-10-16 15:55:17 +0200 |
commit | 3d47d2cc415da1671d7cb8e3502f3ed645914de6 (patch) | |
tree | 5f39f0390ccc4c07d045e60c5e57d37f7c3adedc /docs/manual/mod | |
parent | * Update transformation (diff) | |
download | apache2-3d47d2cc415da1671d7cb8e3502f3ed645914de6.tar.xz apache2-3d47d2cc415da1671d7cb8e3502f3ed645914de6.zip |
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
Diffstat (limited to 'docs/manual/mod')
-rw-r--r-- | docs/manual/mod/mod_access_compat.html.en | 20 | ||||
-rw-r--r-- | docs/manual/mod/mod_access_compat.xml | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_access_compat.html.en b/docs/manual/mod/mod_access_compat.html.en index a04c297f6b..a91adab23f 100644 --- a/docs/manual/mod/mod_access_compat.html.en +++ b/docs/manual/mod/mod_access_compat.html.en @@ -414,6 +414,26 @@ later</td></tr> Satisfy Any </code></p></div> + <p> + Another frequent use of the <code class="directive">Satisfy</code> directive + is to relax access restrictions for a subdirectory: + </p> + + <div class="example"><p><code> + <Directory /var/www/private><br /> + Require valid-user<br /> + </Directory><br /> + <br /> + <Directory /var/www/private/public><br /> + Allow from all<br /> + Satisfy Any<br /> + </Directory> + </code></p></div> + + <p>In the above example, authentication will be required for the + <code>/var/www/private</code> directory, but will not be required + for the <code>/var/www/private/public</code> directory.</p> + <p>Since version 2.0.51 <code class="directive">Satisfy</code> directives can be restricted to particular methods by <code class="directive"><a href="../mod/core.html#limit"><Limit></a></code> and <code class="directive"><a href="../mod/core.html#limitexcept"><LimitExcept></a></code> sections.</p> diff --git a/docs/manual/mod/mod_access_compat.xml b/docs/manual/mod/mod_access_compat.xml index 4b9fca2e69..7ce830cec0 100644 --- a/docs/manual/mod/mod_access_compat.xml +++ b/docs/manual/mod/mod_access_compat.xml @@ -433,6 +433,26 @@ later</compatibility> Satisfy Any </example> + <p> + Another frequent use of the <directive>Satisfy</directive> directive + is to relax access restrictions for a subdirectory: + </p> + + <example> + <Directory /var/www/private><br /> + Require valid-user<br /> + </Directory><br /> + <br /> + <Directory /var/www/private/public><br /> + Allow from all<br /> + Satisfy Any<br /> + </Directory> + </example> + + <p>In the above example, authentication will be required for the + <code>/var/www/private</code> directory, but will not be required + for the <code>/var/www/private/public</code> directory.</p> + <p>Since version 2.0.51 <directive>Satisfy</directive> directives can be restricted to particular methods by <directive module="core" type="section">Limit</directive> and <directive module="core" type="section" |