summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod/mod_macro.xml
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2013-01-21 16:12:02 +0100
committerRich Bowen <rbowen@apache.org>2013-01-21 16:12:02 +0100
commitad19fa5f439c07617083b55f35308aa96e8f6738 (patch)
treead2f51c635ac5ad6a61a27b58f63729e7e1301b1 /docs/manual/mod/mod_macro.xml
parent* support/htcacheclean.c (main): Ensure -p was used before attempting (diff)
downloadapache2-ad19fa5f439c07617083b55f35308aa96e8f6738.tar.xz
apache2-ad19fa5f439c07617083b55f35308aa96e8f6738.zip
Update to 2.4-style Require syntax.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436403 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_macro.xml')
-rw-r--r--docs/manual/mod/mod_macro.xml24
1 files changed, 8 insertions, 16 deletions
diff --git a/docs/manual/mod/mod_macro.xml b/docs/manual/mod/mod_macro.xml
index 6935935bda..ec1e56f19e 100644
--- a/docs/manual/mod/mod_macro.xml
+++ b/docs/manual/mod/mod_macro.xml
@@ -130,15 +130,11 @@ UndefMacro DirGroup
<highlight language="config">
&lt;Macro LocalAccessPolicy&gt;
- order deny,allow
- deny from all
- allow from 10.2.16.0/24
+ Require ip 10.2.16.0/24
&lt;/Macro&gt;
&lt;Macro RestrictedAccessPolicy $ipnumbers&gt;
- order deny,allow
- deny from all
- allow from $ipnumbers
+ Require ip $ipnumbers
&lt;/Macro&gt;
</highlight>
</usage>
@@ -164,21 +160,17 @@ UndefMacro DirGroup
before processing.</p>
<highlight language="config">
-Use LocalAccessPolicy
-...
-Use RestrictedAccessPolicy "192.54.172.0/24 192.54.148.0/24"
+ Use LocalAccessPolicy
+ ...
+ Use RestrictedAccessPolicy "192.54.172.0/24 192.54.148.0/24"
</highlight>
<p>is equivalent, with the macros defined above, to:</p>
<highlight language="config">
-order deny,allow
-deny from all
-allow from 10.2.16.0/24
-...
-order deny,allow
-deny from all
-allow from 192.54.172.0/24 192.54.148.0/24
+ Require ip 10.2.16.0/24
+ ...
+ Require ip 192.54.172.0/24 192.54.148.0/24
</highlight>
</usage>