diff options
Diffstat (limited to 'docs/manual/mod/mod_authz_host.html.en')
-rw-r--r-- | docs/manual/mod/mod_authz_host.html.en | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/docs/manual/mod/mod_authz_host.html.en b/docs/manual/mod/mod_authz_host.html.en index c5c20a12..74048f28 100644 --- a/docs/manual/mod/mod_authz_host.html.en +++ b/docs/manual/mod/mod_authz_host.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -71,7 +71,7 @@ address)</td></tr> <p>Apache's <code class="directive"><a href="../mod/mod_authz_core.html#require">Require</a></code> directive is used during the authorization phase to ensure that a user is allowed or denied access to a resource. mod_authz_host extends the - authorization types with <code>ip</code> and <code>host</code>. + authorization types with <code>ip</code>, <code>host</code> and <code>local</code>. Other authorization types may also be used but may require that additional authorization modules be loaded.</p> @@ -79,6 +79,9 @@ address)</td></tr> access an area of the server. Access can be controlled by hostname, IP Address, or IP Address range.</p> + <p>Since v2.5.0, <a href="../expr.html">expressions</a> are supported + within the host require directives.</p> + <h3><a name="reqip" id="reqip">Require ip</a></h3> <p>The <code>ip</code> provider allows access to the server @@ -88,38 +91,30 @@ address)</td></tr> <p>A full IP address:</p> - <pre class="prettyprint lang-config"> -Require ip 10.1.2.3 -Require ip 192.168.1.104 192.168.1.205 - </pre> + <pre class="prettyprint lang-config">Require ip 10.1.2.3 +Require ip 192.168.1.104 192.168.1.205</pre> <p>An IP address of a host allowed access</p> <p>A partial IP address:</p> - <pre class="prettyprint lang-config"> -Require ip 10.1 -Require ip 10 172.20 192.168.2 - </pre> + <pre class="prettyprint lang-config">Require ip 10.1 +Require ip 10 172.20 192.168.2</pre> <p>The first 1 to 3 bytes of an IP address, for subnet restriction.</p> <p>A network/netmask pair:</p> - <pre class="prettyprint lang-config"> - Require ip 10.1.0.0/255.255.0.0 - </pre> + <pre class="prettyprint lang-config">Require ip 10.1.0.0/255.255.0.0</pre> <p>A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction.</p> <p>A network/nnn CIDR specification:</p> - <pre class="prettyprint lang-config"> - Require ip 10.1.0.0/16 - </pre> + <pre class="prettyprint lang-config">Require ip 10.1.0.0/16</pre> <p>Similar to the previous case, except the netmask consists of nnn high-order 1 bits.</p> @@ -130,12 +125,12 @@ Require ip 10 172.20 192.168.2 <p>IPv6 addresses and IPv6 subnets can be specified as shown below:</p> - <pre class="prettyprint lang-config"> -Require ip 2001:db8::a00:20ff:fea7:ccea -Require ip 2001:db8::a00:20ff:fea7:ccea/10 - </pre> + <pre class="prettyprint lang-config">Require ip 2001:db8::a00:20ff:fea7:ccea +Require ip 2001:db8::a00:20ff:fea7:ccea/10</pre> + <p>Note: As the IP addresses are parsed on startup, expressions are + not evaluated at request time.</p> @@ -148,10 +143,8 @@ Require ip 2001:db8::a00:20ff:fea7:ccea/10 <p>A (partial) domain-name</p> - <pre class="prettyprint lang-config"> -Require host example.org -Require host .net example.edu - </pre> + <pre class="prettyprint lang-config">Require host example.org +Require host .net example.edu</pre> <p>Hosts whose names match, or end in, this string are allowed @@ -182,9 +175,7 @@ Require host .net example.edu <p>This allows a convenient way to match connections that originate from the local host:</p> - <pre class="prettyprint lang-config"> - Require local - </pre> + <pre class="prettyprint lang-config">Require local</pre> @@ -222,7 +213,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_authz_host.h } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |