From 006dfb41f0268e31dba93e83fa5f1271d7325396 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Sun, 14 Dec 1997 01:15:43 +0000 Subject: [PATCH] Correct two incorrect examples. Describe what each example does. PR: 1544 Submitted by: Dan Astoorian Reviewed by: Dean Gaudet git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79694 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_access.html | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/docs/manual/mod/mod_access.html b/docs/manual/mod/mod_access.html index b90399bcf92..4e9bcf46069 100644 --- a/docs/manual/mod/mod_access.html +++ b/docs/manual/mod/mod_access.html @@ -94,11 +94,13 @@ Example:
 BrowserMatch ^KnockKnock/2.0 let_me_in
 <Directory /docroot>
-order allow,deny
-allow from env=let_me_in
-deny from all
+    order deny,allow
+    deny from all
+    allow from env=let_me_in
 </Directory>
 
+In this case browsers with the user-agent string KnockKnock/2.0 will +be allowed access, and all others will be denied.

See also deny from env and order. @@ -167,11 +169,13 @@ Example:

 BrowserMatch ^BadRobot/0.9 go_away
 <Directory /docroot>
-order deny,allow
-deny from env=go_away
-allow from all
+    order allow,deny
+    allow from all
+    deny from env=go_away
 </Directory>
 
+In this case browsers with the user-agent string BadRobot/0.9 will +be denied access, and all others will be allowed.

See also allow from env @@ -206,16 +210,16 @@ initial state is FORBIDDEN.) on the deny list are granted access. (The initial state is irrelevant.)

-Note that in all cases every allow and deny -statement is evaluated, there is no "short-circuiting". +Note that in all cases every allow and deny +statement is evaluated, there is no "short-circuiting".

Example:

-order deny,allow
-deny from all
-allow from .ncsa.uiuc.edu
+ order deny,allow
+ deny from all
+ allow from .ncsa.uiuc.edu

Hosts in the ncsa.uiuc.edu domain are allowed access; all other hosts are -- 2.47.2