From 91d6c5514daa8a6d0ed9052984ab9bbcb03f33c4 Mon Sep 17 00:00:00 2001
From: Daniel Gruno
Date: Sat, 12 May 2012 07:53:59 +0000
Subject: [PATCH] Update access control examples to use 2.4 syntax.
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 | 34 ++++++++++++++--------------------
1 file changed, 14 insertions(+), 20 deletions(-)
diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml
index 1b35dab89a..6437323400 100644
--- a/docs/manual/sections.xml
+++ b/docs/manual/sections.xml
@@ -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.
- <IfVersion >= 2.1>
+<IfVersion >= 2.4>
# this happens only in versions greater or
- # equal 2.1.0.
- </IfVersion>
+ # equal 2.4.0.
+</IfVersion>
IfDefine,
@@ -176,8 +176,7 @@ of where it is found.
<Files private.html>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
@@ -194,8 +193,7 @@ directory.
<Directory /var/web/dir1>
<Files private.html>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
</Directory>
@@ -216,8 +214,7 @@ as any other requests starting with the /private
string.
<LocationMatch ^/private>
- Order Allow,Deny
- Deny from all
+ Require all denied
</Location>
@@ -295,8 +292,7 @@ all user directories could look as follows:
at once:
<FilesMatch \.(?i:gif|jpe?g|png)$>
- Order allow,deny
- Deny from all
+ Require all denied
</FilesMatch>
@@ -336,8 +332,7 @@ For example, consider the following configuration:
<Location /dir/>
- Order allow,deny
- Deny from all
+ Require all denied
</Location>
@@ -404,8 +399,7 @@ will prevent the proxy server from being used to access the
<Proxy http://www.example.com/*>
- Order allow,deny
- Deny from all
+ Require all granted
</Proxy>
@@ -562,15 +556,15 @@ other words, order of merging is important, so be careful!
<Location />
- Order deny,allow
- Allow from all
+ Require all granted
</Location>
# Woops! This <Directory> section will have no effect
<Directory />
- Order allow,deny
- Allow from all
- Deny from badguy.example.com
+ <RequireAll>
+ Require all granted
+ Require not host badguy.example.com
+ </RequireAll>
</Directory>
--
2.50.1