]> granicus.if.org Git - apache/commitdiff
Update access control examples to use 2.4 syntax.
authorDaniel Gruno <humbedooh@apache.org>
Sat, 12 May 2012 07:53:59 +0000 (07:53 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Sat, 12 May 2012 07:53:59 +0000 (07:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1337469 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/sections.xml

index 1b35dab89a3757bc678d15e6a0b888e0e3a614f2..6437323400900cf75918a04a1f323e0ef835c67f 100644 (file)
@@ -112,10 +112,10 @@ module is designed for the use in test suites and large networks which have to
 deal with different httpd versions and different configurations.</p>
 
 <highlight language="config">
-  &lt;IfVersion >= 2.1&gt;
+&lt;IfVersion >= 2.4&gt;
     # this happens only in versions greater or
-    # equal 2.1.0.
-  &lt;/IfVersion&gt;
+    # equal 2.4.0.
+&lt;/IfVersion&gt;
 </highlight>
 
 <p><directive type="section" module="core">IfDefine</directive>,
@@ -176,8 +176,7 @@ of where it is found.</p>
 
 <highlight language="config">
 &lt;Files private.html&gt;
-    Order allow,deny
-    Deny from all
+    Require all denied
 &lt;/Files&gt;
 </highlight>
 
@@ -194,8 +193,7 @@ directory.</p>
 <highlight language="config">
 &lt;Directory /var/web/dir1&gt;
     &lt;Files private.html&gt;
-        Order allow,deny
-        Deny from all
+        Require all denied
     &lt;/Files&gt;
 &lt;/Directory&gt;
 </highlight>
@@ -216,8 +214,7 @@ as any other requests starting with the <code>/private</code> string.</p>
 
 <highlight language="config">
 &lt;LocationMatch ^/private&gt;
-    Order Allow,Deny
-    Deny from all
+    Require all denied
 &lt;/Location&gt;
 </highlight>
 
@@ -295,8 +292,7 @@ all user directories could look as follows:</p>
 at once:</p>
 <highlight language="config">
 &lt;FilesMatch \.(?i:gif|jpe?g|png)$&gt;
-    Order allow,deny
-    Deny from all
+    Require all denied
 &lt;/FilesMatch&gt;
 </highlight>
 
@@ -336,8 +332,7 @@ For example, consider the following configuration:</p>
 
 <highlight language="config">
 &lt;Location /dir/&gt;
-    Order allow,deny
-    Deny from all
+    Require all denied
 &lt;/Location&gt;
 </highlight>
 
@@ -404,8 +399,7 @@ will prevent the proxy server from being used to access the
 
 <highlight language="config">
 &lt;Proxy http://www.example.com/*&gt;
-    Order allow,deny
-    Deny from all
+    Require all granted
 &lt;/Proxy&gt;
 </highlight>
 </section>
@@ -562,15 +556,15 @@ other words, order of merging is important, so be careful!</p>
 
 <highlight language="config">
 &lt;Location /&gt;
-    Order deny,allow
-    Allow from all
+    Require all granted
 &lt;/Location&gt;
 
 # Woops!  This &lt;Directory&gt; section will have no effect
 &lt;Directory /&gt;
-    Order allow,deny
-    Allow from all
-    Deny from badguy.example.com
+    &lt;RequireAll&gt;
+        Require all granted
+        Require not host badguy.example.com
+    &lt;/RequireAll&gt;
 &lt;/Directory&gt;
 </highlight>