diff options
author | Eric Covener <covener@apache.org> | 2016-12-05 20:34:13 +0100 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2016-12-05 20:34:13 +0100 |
commit | 039e705253dfa0838e815609223727c63d15c0fd (patch) | |
tree | 7ef194d63f4633fbbd602b30cb1c53bb651f9300 /docs/manual/upgrading.xml | |
parent | in 2.4.24-dev (diff) | |
download | apache2-039e705253dfa0838e815609223727c63d15c0fd.tar.xz apache2-039e705253dfa0838e815609223727c63d15c0fd.zip |
provide more access control migration hints
current examples don't account for when access control overlaps
with authentication.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1772758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | docs/manual/upgrading.xml | 88 |
1 files changed, 85 insertions, 3 deletions
diff --git a/docs/manual/upgrading.xml b/docs/manual/upgrading.xml index 705c477311..6fb7177732 100644 --- a/docs/manual/upgrading.xml +++ b/docs/manual/upgrading.xml @@ -153,7 +153,7 @@ <p>Here are some examples of old and new ways to do the same access control.</p> - <p>In this example, all requests are denied.</p> + <p>In this example, there is no authentication and all requests are denied.</p> <example> <title>2.2 configuration:</title> <highlight language="config"> @@ -168,7 +168,7 @@ Deny from all </highlight> </example> - <p>In this example, all requests are allowed.</p> + <p>In this example, there is no authentication and all requests are allowed.</p> <example> <title>2.2 configuration:</title> <highlight language="config"> @@ -183,7 +183,7 @@ Allow from all </highlight> </example> - <p>In the following example, all hosts in the example.org domain + <p>In the following example, there is no authentication and all hosts in the example.org domain are allowed access; all other hosts are denied access.</p> <example> @@ -257,6 +257,88 @@ access.log - GET /server-status 200 127.0.0.1 </p> </section> + <p>In many configurations with authentication, where the value of the + <directive>Satisfy</directive> was the default of <em>ALL</em>, snippets + that simply disabled host-based access control are omitted:</p> + + <example> + <title>2.2 configuration:</title> + <highlight language="config"> +Order Deny,Allow +Deny from all +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +Require valid-user + </highlight> + </example> + <example> + <title>2.4 configuration:</title> + <highlight language="config"> +# No replacement needed +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +Require valid-user + </highlight> + </example> + + <p>In configurations where both authentication and access control were meaningfully combined, the + access control directives should be migrated. This example allows requests meeting <em>both</em> criteria:</p> + <example> + <title>2.2 configuration:</title> + <highlight language="config"> +Order allow,deny +Deny from all +# Satisfy ALL is the default +Satisfy ALL +Allow from 127.0.0.1 +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +Require valid-user + </highlight> + </example> + <example> + <title>2.4 configuration:</title> + <highlight language="config"> +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +<RequireAll> + Require valid-user + require ip 127.0.0.1 +</RequireAll> + </highlight> + </example> + + <p>In configurations where both authentication and access control were meaningfully combined, the + access control directives should be migrated. This example allows requests meeting <em>either</em> criteria:</p> + <example> + <title>2.2 configuration:</title> + <highlight language="config"> +Order allow,deny +Deny from all +Satisfy any +Allow from 127.0.0.1 +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +Require valid-user + </highlight> + </example> + <example> + <title>2.4 configuration:</title> + <highlight language="config"> +AuthBasicProvider File +AuthUserFile /example.com/conf/users.passwd +AuthName secure +# Implicitly <RequireAny> +Require valid-user +Require ip 127.0.0.1 + </highlight> + </example> + </section> <section id="config"> |