Commit 56cf292b authored by dgaudet's avatar dgaudet
Browse files

Correct two incorrect examples. Describe what each example does.

PR:		1544
Submitted by:	Dan Astoorian <djast@cs.toronto.edu>
Reviewed by:	Dean Gaudet


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79694 13f79535-47bb-0310-9956-ffa450edef68
parent 10bfa881
Loading
Loading
Loading
Loading
+10 −6
Changes for docs/manual/mod/mod_access.html: 10 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -94,11 +94,13 @@ Example:
<blockquote><pre>
BrowserMatch ^KnockKnock/2.0 let_me_in
&lt;Directory /docroot&gt;
order allow,deny
allow from env=let_me_in
    order deny,allow
    deny from all
    allow from env=let_me_in
&lt;/Directory&gt;
</pre></blockquote>
In this case browsers with the user-agent string <tt>KnockKnock/2.0</tt> will
be allowed access, and all others will be denied.
<P>
See also <A HREF="#denyfromenv">deny from env</A>
and <A HREF="#order">order</A>.
@@ -167,11 +169,13 @@ Example:
<blockquote><pre>
BrowserMatch ^BadRobot/0.9 go_away
&lt;Directory /docroot&gt;
order deny,allow
deny from env=go_away
    order allow,deny
    allow from all
    deny from env=go_away
&lt;/Directory&gt;
</pre></blockquote>
In this case browsers with the user-agent string <tt>BadRobot/0.9</tt> will
be denied access, and all others will be allowed.

<P>
See also <A HREF="#allowfromenv">allow from env</A>
@@ -206,8 +210,8 @@ initial state is FORBIDDEN.)
on the deny list are granted access.  (The initial state is irrelevant.)
</dl>
<P>
Note that in all cases every <code>allow</code> and <code>deny</code>
statement is evaluated, there is no &quot;short-circuiting&quot;.
<b>Note that in all cases every <code>allow</code> and <code>deny</code>
statement is evaluated, there is no &quot;short-circuiting&quot;.</b>
</P>
<p>
Example: