httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1337465 - /httpd/httpd/trunk/docs/manual/sections.xml
Date Sat, 12 May 2012 07:46:38 GMT
Author: humbedooh
Date: Sat May 12 07:46:38 2012
New Revision: 1337465

URL: http://svn.apache.org/viewvc?rev=1337465&view=rev
Log:
Update access control examples to use 2.4 syntax.

Modified:
    httpd/httpd/trunk/docs/manual/sections.xml

Modified: httpd/httpd/trunk/docs/manual/sections.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/sections.xml?rev=1337465&r1=1337464&r2=1337465&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/sections.xml (original)
+++ httpd/httpd/trunk/docs/manual/sections.xml Sat May 12 07:46:38 2012
@@ -112,9 +112,9 @@ module is designed for the use in test s
 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.
+    # equal 2.4.0.
 &lt;/IfVersion&gt;
 </highlight>
 
@@ -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 
 
 <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 follo
 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 conf
 
 <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
 
 <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 importa
 
 <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>
 



Mime
View raw message