1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
|
<?xml version="1.0" encoding="EUC-JP"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>mod_authz_host - Apache HTTP </title>
<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 href="../images/favicon.ico" rel="shortcut icon" /></head>
<body>
<div id="page-header">
<p class="menu"><a href="../mod/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p>
<p class="apache">Apache HTTP С 2.2</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP </a> > <a href="http://httpd.apache.org/docs/">ɥơ</a> > <a href="../">С 2.2</a> > <a href="./">⥸塼</a></div>
<div id="page-content">
<div id="preamble"><h1>Apache ⥸塼 mod_authz_host</h1>
<div class="toplang">
<p><span>Available Languages: </span><a href="../en/mod/mod_authz_host.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_authz_host.html" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_authz_host.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div>
<table class="module"><tr><th><a href="module-dict.html#Description">:</a></th><td>ۥ (̾⤷ IP ɥ쥹) ˴Ť롼ǧ</td></tr>
<tr><th><a href="module-dict.html#Status">ơ:</a></th><td>Base</td></tr>
<tr><th><a href="module-dict.html#ModuleIdentifier">⥸塼뼱̻:</a></th><td>authz_host_module</td></tr>
<tr><th><a href="module-dict.html#SourceFile">ե:</a></th><td>mod_authz_host.c</td></tr>
<tr><th><a href="module-dict.html#Compatibility">ߴ:</a></th><td>Apache 2.1 ʹ</td></tr></table>
<h3></h3>
<p><code class="module"><a href="../mod/mod_authz_host.html">mod_authz_host</a></code> ˤǥ쥯ƥ֤
Фʬؤ
椹뤿 <code class="directive"><a href="../mod/core.html#directory"><Directory></a></code>, <code class="directive"><a href="../mod/core.html#files"><Files></a></code>, <code class="directive"><a href="../mod/core.html#location"><Location></a></code>
<code><a href="core.html#accessfilename">.htaccess</a></code> եǻѤޤ饤ȤΥۥ̾IP
ɥ쥹 <a href="../env.html">Ķѿ</a>ȤƼ줿¾ΥꥯȤħ˴Ť
ԤʤȤǤޤ<code class="directive"><a href="#allow">Allow</a></code>
<code class="directive"><a href="#deny">Deny</a></code> ǥ쥯ƥ֤
ɤΤ褦ʥ饤Ȥ˥
Ĥ롢ʤꤹ뤿˻Ѥޤ
<code class="directive"><a href="#order">Order</a></code> ǥ쥯ƥ֤
ǥեȤΥ֤ȡ
<code class="directive"><a href="#allow">Allow</a></code> ǥ쥯ƥ֤
<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤ȤΤߤؤαƶλꤷޤ
</p>
<p>ۥȤˤ륢¤ȥѥɤˤǧڤƱ
ԤʤȤǽǤξ硢Ĥ¤δطꤹ뤿
<code class="directive"><a href="../mod/core.html#satisfy">Satisfy</a></code>
ǥ쥯ƥ֤Ѥޤ</p>
<p>Ūˤϡ¥ǥ쥯ƥ֤Ϥ٤ƤΥå
(<code>GET</code>, <code>PUT</code>, <code>POST</code> ʤ)
ŬѤޤơۤȤɤξ礳줬˾ޤưǤ
<code class="directive"><a href="../mod/core.html#limit"><Limit></a></code>
˥ǥ쥯ƥ֤Ȥǡ
ΥåɤˤΤ¤뤳ȤǤޤ</p>
</div>
<div id="quickview"><h3 class="directives">ǥ쥯ƥ</h3>
<ul id="toc">
<li><img alt="" src="../images/down.gif" /> <a href="#allow">Allow</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#deny">Deny</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#order">Order</a></li>
</ul>
<h3></h3>
<ul class="seealso">
<li><code class="directive"><a href="../mod/core.html#satisfy">Satisfy</a></code></li>
<li><code class="directive"><a href="../mod/core.html#require">Require</a></code></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="Allow" id="Allow">Allow</a> <a name="allow" id="allow">ǥ쥯ƥ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">:</a></th><td>ФΤΰ˥ǤۥȤ椹</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ʸ:</a></th><td><code> Allow from all|<var>host</var>|env=<var>env-variable</var>
[<var>host</var>|env=<var>env-variable</var>] ...</code></td></tr>
<tr><th><a href="directive-dict.html#Context">ƥ:</a></th><td>ǥ쥯ȥ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">:</a></th><td>Limit</td></tr>
<tr><th><a href="directive-dict.html#Status">ơ:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">⥸塼:</a></th><td>mod_authz_host</td></tr>
</table>
<p><code class="directive">Allow</code> ǥ쥯ƥ֤ϤɤΥۥȤ
ФΤΰǤ뤫˱ƶͿޤ
ϥۥ̾IP ɥ쥹IP ɥ쥹ϰϤ䡢
ĶѿȤƼ줿¾Υ饤ȤΥꥯȤ
ħˤä椹뤳ȤǤޤ</p>
<p>Υǥ쥯ƥ֤κǽΰϾ <code>from</code> Ǥ
³ϻĤΰäޤ<code>Allow from
all</code> ꤵƤС٤ƤΥۥȤ˥Ĥ
¤ϲƤ褦ˡ
<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤ <code class="directive"><a href="#order">Order</a></code>
ǥ쥯ƥ֤Ƿޤޤ
ΥۥȤۥȷˤΤߥФؤΥĤ뤿ˤϡ
ʲΤɤ줫η <em>host</em> ꤹ뤳ȤǤޤ:</p>
<dl>
<dt>ɥᥤ̾ (ΰ)</dt>
<dd>
<div class="example"><h3></h3><p><code>
Allow from apache.org<br />
Allow from .net example.edu
</code></p></div>
<p>ʸ˹礦ǽ̾ΥۥȤΥĤޤ
ʬ˹礦ΤŬѤޤΤǡ
<code>foo.apache.org</code> ˤϥޥåޤ
<code>fooapache.org</code> ˤϥޥåޤ
ȡApache
<code class="directive"><a href="../mod/core.html#hostnamelookups">HostnameLookups</a></code>
˴ؤ餺饤Ȥ IP ɥ쥹Ф
DNS 2 ŵհԤʤޤ
ۥ̾饪ꥸʥ IP ɥ쥹ޤ
ȵհפۥ̾ˤΤߡ
Ĥޤ</p></dd>
<dt> IP ɥ쥹</dt>
<dd>
<div class="example"><h3></h3><p><code>
Allow from 10.1.2.3<br />
Allow from 192.168.1.104 192.168.1.205
</code></p></div>
<p>Ĥ IP ɥ쥹Ǥ</p></dd>
<dt>IP ɥ쥹ΰ</dt>
<dd>
<div class="example"><h3></h3><p><code>
Allow from 10.1<br />
Allow from 10 172.20 192.168.2
</code></p></div>
<p>֥ͥåȤѤΡIP
ɥ쥹κǽΰĤ黰ĤޤǤΥХȤǤ</p></dd>
<dt>ͥåȥ/ͥåȥޥ </dt>
<dd>
<div class="example"><h3></h3><p><code>
Allow from 10.1.0.0/255.255.0.0
</code></p></div>
<p>ͥåȥ a.b.c.d ȥͥåȥޥ w.x.y.z Ǥ
γ٤Υ֥ͥåѤǤ</p></dd>
<dt>ͥåȥ/nnn CIDR </dt>
<dd>
<div class="example"><h3></h3><p><code>
Allow from 10.1.0.0/16
</code></p></div>
<p>ͥåȥޥ nnn ξ̥ӥåȤ 1
ȤʤäƤΤʤ뤳ȰʳΤΤƱǤ</p></dd>
</dl>
<p>: ǸλĤϤޤäƱۥȤ˹礤ޤ</p>
<p>IPv6 ɥ쥹 IPv6 Υ֥ͥåȤϰʲΤ褦˻Ǥޤ:</p>
<div class="example"><p><code>
Allow from 2001:db8::a00:20ff:fea7:ccea<br />
Allow from 2001:db8::a00:20ff:fea7:ccea/10
</code></p></div>
<p><code class="directive">Allow</code> ǥ쥯ƥ֤ΰλܤηϡ
<a href="../env.html">Ķѿ</a>
¸ߤˤꥢԤʤ褦ˤΤǤ
<code>Allow from env=<var>env-variable</var></code>
ꤵƤȡĶѿ <var>env-variable</var>
¸ߤ˥ꥯȤϥĤޤФ
<code class="module"><a href="../mod/mod_setenvif.html">mod_setenvif</a></code>
Υǥ쥯ƥ֤ˤꡢ饤ȤΥꥯ
ħ˴Ťƽ˴Ķѿꤹ뵡ǽޤ
Ǥ顢Υǥ쥯ƥ֤ϥ饤Ȥ
<code>User-Agent</code> (֥饦μ)<code>Referer</code>
¾ HTTP ꥯȤΥإåեɤʤɤ˴Ť
Ĥ뤿˻ȤȤǤޤ
</p>
<div class="example"><h3>Example:</h3><p><code>
SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in<br />
<Directory /docroot><br />
<span class="indent">
Order Deny,Allow<br />
Deny from all<br />
Allow from env=let_me_in<br />
</span>
</Directory>
</code></p></div>
<p>ξ硢user-agent ʸ <code>KnockKnock/2.0</code>
ǻϤޤ֥饦ΤߤĤ졢
¾ΤΤϥݤޤ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="Deny" id="Deny">Deny</a> <a name="deny" id="deny">ǥ쥯ƥ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">:</a></th><td>ФݤۥȤ椹</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ʸ:</a></th><td><code> Deny from all|<var>host</var>|env=<var>env-variable</var>
[<var>host</var>|env=<var>env-variable</var>] ...</code></td></tr>
<tr><th><a href="directive-dict.html#Context">ƥ:</a></th><td>ǥ쥯ȥ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">:</a></th><td>Limit</td></tr>
<tr><th><a href="directive-dict.html#Status">ơ:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">⥸塼:</a></th><td>mod_authz_host</td></tr>
</table>
<p>Υǥ쥯ƥ֤ϥۥ̾IP
ɥ쥹Ķѿ˴ŤƥФؤΥ¤ޤ
<code class="directive">Deny</code> ǥ쥯ƥ֤ΰ <code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤ȤޤäƱǤ</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="Order" id="Order">Order</a> <a name="order" id="order">ǥ쥯ƥ</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">:</a></th><td>ǥեȤΥǽʾ֤ȡ<code class="directive">Allow</code>
<code class="directive">Deny</code> ɾ֤椹</td></tr>
<tr><th><a href="directive-dict.html#Syntax">ʸ:</a></th><td><code> Order <var>ordering</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">ǥե:</a></th><td><code>Order Deny,Allow</code></td></tr>
<tr><th><a href="directive-dict.html#Context">ƥ:</a></th><td>ǥ쥯ȥ, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">:</a></th><td>Limit</td></tr>
<tr><th><a href="directive-dict.html#Status">ơ:</a></th><td>Base</td></tr>
<tr><th><a href="directive-dict.html#Module">⥸塼:</a></th><td>mod_authz_host</td></tr>
</table>
<p><code class="directive">Order</code> ǥ쥯ƥ֤ϥǥեȤΥξ֤
<code class="directive"><a href="#allow">Allow</a></code> ǥ쥯ƥ֤
<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤ɾ֤椷ޤ
<var>Ordering</var> ϰʲΤɤ줫Ǥ</p>
<dl>
<dt><code>Deny,Allow</code></dt>
<dd><code class="directive"><a href="#deny">Deny</a></code> ǥ쥯ƥ֤
<code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤ɾޤ
ϥǥեȤǵĤޤ<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤˹ʤ<code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤˹礦饤ȤϥĤޤ</dd>
<dt><code>Allow,Deny</code></dt>
<dd><code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤ <code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤ɾޤ
ϥǥեȤǵݤޤ<code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤˹ʤ<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤˹礦饤Ȥϥݤޤ
</dd>
<dt><code>Mutual-failure</code></dt>
<dd><code class="directive"><a href="#allow">Allow</a></code> ΥꥹȤ˸ơ
<code class="directive"><a href="#deny">Deny</a></code>
ΥꥹȤ˸ʤۥȤΤߤĤޤ
νդ <code>Order Allow,Deny</code> Ʊ̤
ޤ侩ȤʤäƤޤ</dd>
</dl>
<p>ɤϥޤʬΥ뤳ȤǽǤ
֤<em>äƤϤޤ</em>ɤξǤ⡢<code class="directive"><a href="#allow">Allow</a></code>
<code class="directive"><a href="#deny">Deny</a></code> ʸ
ɾȤȤդƤ
</p>
<p>ʲǤϡapache.org
ɥᥤΤ٤ƤΥۥȤϥĤޤ
¾Τ٤ƤΥۥȤϥݤޤ</p>
<div class="example"><p><code>
Order Deny,Allow<br />
Deny from all<br />
Allow from apache.org
</code></p></div>
<p>Ǥϡfoo.apache.org ֥ɥᥤˤۥȰʳΡ
apache.org ɥᥤΤ٤ƤΥۥȤĤޤ
apache.org
ɥᥤǤʤۥȤϡǥեȤξ֤ݤΤᡢ
ФؤΥݤޤ</p>
<div class="example"><p><code>
Order Allow,Deny<br />
Allow from apache.org<br />
Deny from foo.apache.org
</code></p></div>
<p> <code class="directive">Order</code> <code>Deny,Allow</code>
ѤäƤС٤ΥۥȤ˥Ĥޤ
ϡեμºݤν֤˴ؤ餺
<code>Allow from apache.org</code> Ǹɾơ
<code>Deny from foo.apache.org</code> 뤫Ǥ
<code>apache.org</code>
ɥᥤˤʤۥȤ⡢ǥեȤξ֤ <em>allow</em>
Ѳ뤿ˡĤޤ
</p>
<p><code class="directive">Order</code>
ǥ쥯ƥ֤ϥǥեȤΥξ֤˱ƶͿΤǡ
<code class="directive"><a href="#allow">Allow</a></code> ǥ쥯ƥ֤
<code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ̵֤Ƥ⡢ФΥ˱ƶͿ뤳ȤǤޤ
ȤС</p>
<div class="example"><p><code>
<Directory /www><br />
<span class="indent">
Order Allow,Deny<br />
</span>
</Directory>
</code></p></div>
<p>ϥǥեȤΥ֤ <em>deny</em> ˤʤ뤿ᡢ
<code>/www</code> ǥ쥯ȥؤΤ٤ƤΥݤޤ
</p>
<p><code class="directive">Order</code>
ǥ쥯ƥ֤ϥФγʳǤ
ǥ쥯ƥ֤νν֤ѹޤϡȤС
<code class="directive">Order</code> ǥ쥯ƥ֤˴ؤ餺
<code class="directive"><a href="../mod/core.html#location"><Location></a></code>
<code class="directive"><a href="#allow">Allow</a></code> ǥ쥯ƥ֤
<code class="directive"><a href="#deny">Deny</a></code> ǥ쥯ƥ֤ϡ
<code class="directive"><a href="../mod/core.html#directory">Directory</a></code>
<code>.htaccess</code> ե <code class="directive"><a href="#allow">Allow</a></code>
ǥ쥯ƥ֤ <code class="directive"><a href="#deny">Deny</a></code>
ǥ쥯ƥ֤˸ɾȤȤ̣ޤ
ꥻΥޡξܺ٤ˤĤƤϡ
<a href="../sections.html">Directory,Location, Files
ưˡ</a> ȤƤ</p>
</div>
</div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="../en/mod/mod_authz_host.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_authz_host.html" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_authz_host.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Copyright 2006 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/">⥸塼</a> | <a href="../mod/directives.html">ǥ쥯ƥ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Ѹ</a> | <a href="../sitemap.html">ȥޥå</a></p></div>
</body></html>
|