1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"ja" xml:
lang=
"ja"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_access_compat - Apache HTTP サーバ
</title>
9 <link href=
"../style/css/manual.css" rel=
"stylesheet" media=
"all" type=
"text/css" title=
"Main stylesheet" />
10 <link href=
"../style/css/manual-loose-100pc.css" rel=
"alternate stylesheet" media=
"all" type=
"text/css" title=
"No Sidebar - Default font size" />
11 <link href=
"../style/css/manual-print.css" rel=
"stylesheet" media=
"print" type=
"text/css" />
12 <link href=
"../images/favicon.ico" rel=
"shortcut icon" /></head>
14 <div id=
"page-header">
15 <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>
16 <p class=
"apache">Apache HTTP サーバ バージョン
2.3</p>
17 <img alt=
"" src=
"../images/feather.gif" /></div>
18 <div class=
"up"><a href=
"./"><img title=
"<-" alt=
"<-" src=
"../images/left.gif" /></a></div>
20 <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=
"../">バージョン
21 2.3</a> > <a href=
"./">モジュール
</a></div>
22 <div id=
"page-content">
23 <div id=
"preamble"><h1>Apache モジュール mod_access_compat
</h1>
25 <p><span>言語:
</span><a href=
"../en/mod/mod_access_compat.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
26 <a href=
"../ja/mod/mod_access_compat.html" title=
"Japanese"> ja
</a></p>
28 <div class=
"outofdate">この日本語訳はすでに古くなっている可能性があります。
29 更新された内容を見るには英語版をご覧下さい。
</div>
30 <table class=
"module"><tr><th><a href=
"module-dict.html#Description">説明:
</a></th><td>ホスト (名前もしくは IP アドレス) に基づいたグループ承認
</td></tr>
31 <tr><th><a href=
"module-dict.html#Status">ステータス:
</a></th><td>Extension
</td></tr>
32 <tr><th><a href=
"module-dict.html#ModuleIdentifier">モジュール識別子:
</a></th><td>access_compat_module
</td></tr>
33 <tr><th><a href=
"module-dict.html#SourceFile">ソースファイル:
</a></th><td>mod_access_compat.c
</td></tr>
34 <tr><th><a href=
"module-dict.html#Compatibility">互換性:
</a></th><td>Apache
2.3 (Apache
2.x の以前のバージョンとの互換性のためのモジュールとして)。
35 このモジュールで提供するディレクティブは、承認の仕組みの一新に伴い、非推奨になったものです。
36 <code class=
"module"><a href=
"../mod/mod_authz_host.html">mod_authz_host
</a></code> も見てください。
</td></tr></table>
39 <p><code class=
"module"><a href=
"../mod/mod_access_compat.html">mod_access_compat
</a></code> により提供されるディレクティブは
41 アクセスを制御するために
<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>
42 と
<code><a href=
"core.html#accessfilename">.htaccess
</a></code> ファイルで使用されます。クライアントのホスト名、IP
43 アドレスや、
<a href=
"../env.html">環境変数
</a>などのリクエストの特徴に基づいて
44 アクセス制御を行なうことができます。
<code class=
"directive"><a href=
"#allow">Allow
</a></code> と
45 <code class=
"directive"><a href=
"#deny">Deny
</a></code> ディレクティブを使って、
48 <code class=
"directive"><a href=
"#order">Order
</a></code> ディレクティブを使って、
50 <code class=
"directive"><a href=
"#allow">Allow
</a></code> ディレクティブと
51 <code class=
"directive"><a href=
"#deny">Deny
</a></code>
52 ディレクティブとのお互いへの影響の仕方を設定します。
55 <p>ホストによるアクセス制限とパスワードによる認証を、
57 この場合、その二つの制限の関係を指定するために
58 <code class=
"directive"><a href=
"#satisfy">Satisfy
</a></code>
61 <div class=
"warning"><h3>Note
</h3>
62 <p><code class=
"module"><a href=
"../mod/mod_access_compat.html">mod_access_compat
</a></code>が提供するディレクティブは、
63 承認の仕組みの一新に伴い、非推奨になったものです。
64 <code class=
"module"><a href=
"../mod/mod_authz_host.html">mod_authz_host
</a></code> も見てください。
65 デフォルトの承認の取り扱い機能を使用するために
66 <code class=
"module"><a href=
"../mod/mod_authz_default.html">mod_authz_default
</a></code>
67 モジュールもロードされなければなりません。
</p>
70 <p>一般的には、アクセス制限ディレクティブはすべてのアクセスメソッド
71 (
<code>GET
</code>,
<code>PUT
</code>,
<code>POST
</code> など)
72 に適用されます。そして、ほとんどの場合これが望ましい動作です。
73 しかし、
<code class=
"directive"><a href=
"../mod/core.html#limit"><Limit
></a></code>
74 セクションの中にディレクティブを書くことで、
75 一部のメソッドにのみ制限をかけることもできます。
</p>
77 <div id=
"quickview"><h3 class=
"directives">ディレクティブ
</h3>
79 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#allow">Allow
</a></li>
80 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#deny">Deny
</a></li>
81 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#order">Order
</a></li>
82 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#satisfy">Satisfy
</a></li>
86 <li><code class=
"directive"><a href=
"../mod/mod_authz_core.html#require">Require
</a></code></li>
87 <li><code class=
"module"><a href=
"../mod/mod_authz_host.html">mod_authz_host
</a></code></li>
88 <li><code class=
"module"><a href=
"../mod/mod_authz_core.html">mod_authz_core
</a></code></li>
91 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
92 <div class=
"directive-section"><h2><a name=
"Allow" id=
"Allow">Allow
</a> <a name=
"allow" id=
"allow">ディレクティブ
</a></h2>
93 <table class=
"directive">
94 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>サーバのある領域にアクセスできるホストを制御する
</td></tr>
95 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code> Allow from all|
<var>host
</var>|env=[!]
<var>env-variable
</var>
96 [
<var>host
</var>|env=[!]
<var>env-variable
</var>] ...
</code></td></tr>
97 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>ディレクトリ, .htaccess
</td></tr>
98 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Limit
</td></tr>
99 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Extension
</td></tr>
100 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_access_compat
</td></tr>
102 <p><code class=
"directive">Allow
</code> ディレクティブは、どのホストが
103 サーバのある領域にアクセスできるかに影響を与えます。
104 アクセスはホスト名、IP アドレス、IP アドレスの範囲や、
106 特徴に基づいてアクセス制御することができます。
</p>
108 <p>このディレクティブの最初の引数は常に
<code>from
</code> です。
109 それに続く引数は三つの違った形式があります。
<code>Allow from
110 all
</code> が指定されていれば、すべてのホストにアクセスを許可し、
112 <code class=
"directive"><a href=
"#deny">Deny
</a></code>
113 ディレクティブと
<code class=
"directive"><a href=
"#order">Order
</a></code>
115 特定のホストやホスト群にのみサーバへのアクセスを許可するためには、
116 以下のどれかの形式で
<em>host
</em> を指定することができます:
</p>
122 <div class=
"example"><h3>例
</h3><p><code>
123 Allow from apache.org
<br />
124 Allow from .net example.edu
126 <p>この文字列に合うか、これで終わる名前のホストのアクセスが許可されます。
127 各部分が完全に合うものだけに適用されますので、上の例は
128 <code>foo.apache.org
</code> にはマッチしますが、
129 <code>fooapache.org
</code> にはマッチしません。
131 <code class=
"directive"><a href=
"../mod/core.html#hostnamelookups">HostnameLookups
</a></code>
132 の設定に関わらず、クライアントの IP アドレスに対して
134 ホスト名からオリジナルの IP アドレスを順引きします。
135 順引きと逆引きが一致し、ホスト名が該当した場合にのみ、
136 アクセスが許可されます。
</p></dd>
141 <div class=
"example"><h3>例
</h3><p><code>
142 Allow from
10.1.2.3<br />
143 Allow from
192.168.1.104 192.168.1.205
145 <p>アクセスを許可する IP アドレスです。
</p></dd>
150 <div class=
"example"><h3>例
</h3><p><code>
151 Allow from
10.1<br />
152 Allow from
10 172.20 192.168.2
155 アドレスの最初の一つから三つまでのバイトです。
</p></dd>
157 <dt>ネットワーク/ネットマスク の対
</dt>
160 <div class=
"example"><h3>例
</h3><p><code>
161 Allow from
10.1.0.0/
255.255.0.0
163 <p>ネットワーク a.b.c.d とネットマスク w.x.y.z です。
164 より細粒度のサブネット制限用です。
</p></dd>
166 <dt>ネットワーク/nnn CIDR 指定
</dt>
169 <div class=
"example"><h3>例
</h3><p><code>
170 Allow from
10.1.0.0/
16
172 <p>ネットマスクが nnn の上位ビットが
1
173 となっているものからなること以外は前のものと同じです。
</p></dd>
176 <p>注: 最後の三つの例はまったく同じホストに合います。
</p>
179 <p>IPv6 アドレスと IPv6 のサブネットは以下のように指定できます:
</p>
181 <div class=
"example"><p><code>
182 Allow from
2001:db8::a00:
20ff:fea7:ccea
<br />
183 Allow from
2001:db8::a00:
20ff:fea7:ccea/
10
186 <p><code class=
"directive">Allow
</code> ディレクティブの引数の三つ目の形式は、
187 <a href=
"../env.html">環境変数
</a>
188 の存在によりアクセスの制御を行なえるようにするものです。
189 <code>Allow from env=
<var>env-variable
</var></code>
190 が指定されていると、環境変数
<var>env-variable
</var>
191 が存在した場合にリクエストはアクセスを許可されます。
192 <code>Allow from env=!
<var>env-variable
</var></code>
193 が指定されていると、環境変数
<var>env-variable
</var>
195 サーバは
<code class=
"module"><a href=
"../mod/mod_setenvif.html">mod_setenvif
</a></code>
196 のディレクティブにより、クライアントのリクエスト
197 の特徴に基づいて柔軟に環境変数を設定する機能を提供します。
198 ですから、このディレクティブはクライアントの
199 <code>User-Agent
</code> (ブラウザの種類)、
<code>Referer
</code>
200 や他の HTTP リクエストのヘッダフィールドなどに基づいて
201 アクセス許可をするために使うことができます。
204 <div class=
"example"><h3>Example:
</h3><p><code>
205 SetEnvIf User-Agent ^KnockKnock/
2\
.0 let_me_in
<br />
206 <Directory /docroot
><br />
207 <span class=
"indent">
208 Order Deny,Allow
<br />
210 Allow from env=let_me_in
<br />
215 <p>この場合、user-agent の文字列が
<code>KnockKnock/
2.0</code>
216 で始まるブラウザのみがアクセスが許可され、
217 他のものはアクセスが拒否されます。
</p>
221 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
222 <div class=
"directive-section"><h2><a name=
"Deny" id=
"Deny">Deny
</a> <a name=
"deny" id=
"deny">ディレクティブ
</a></h2>
223 <table class=
"directive">
224 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>サーバがアクセスを拒否するホストを制御する
</td></tr>
225 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code> Deny from all|
<var>host
</var>|env=[!]
<var>env-variable
</var>
226 [
<var>host
</var>|env=[!]
<var>env-variable
</var>] ...
</code></td></tr>
227 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>ディレクトリ, .htaccess
</td></tr>
228 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Limit
</td></tr>
229 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Extension
</td></tr>
230 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_access_compat
</td></tr>
233 アドレス、環境変数に基づいてサーバへのアクセスを制限します。
234 <code class=
"directive">Deny
</code> ディレクティブの引数は
<code class=
"directive"><a href=
"#allow">Allow
</a></code>
235 ディレクティブとまったく同じです。
</p>
238 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
239 <div class=
"directive-section"><h2><a name=
"Order" id=
"Order">Order
</a> <a name=
"order" id=
"order">ディレクティブ
</a></h2>
240 <table class=
"directive">
241 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>デフォルトのアクセス可能な状態と、
<code class=
"directive">Allow
</code> と
242 <code class=
"directive">Deny
</code> が評価される順番を制御する
</td></tr>
243 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code> Order
<var>ordering
</var></code></td></tr>
244 <tr><th><a href=
"directive-dict.html#Default">デフォルト:
</a></th><td><code>Order Deny,Allow
</code></td></tr>
245 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>ディレクトリ, .htaccess
</td></tr>
246 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Limit
</td></tr>
247 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Extension
</td></tr>
248 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_access_compat
</td></tr>
251 <p><code class=
"directive">Order
</code> ディレクティブは
<code class=
"directive"><a href=
"#allow">Allow
</a></code> ディレクティブと
<code class=
"directive"><a href=
"#deny">Deny
</a></code> と共に
"3段階アクセス制御システム"
252 を制御します。第
1段階目では
<code class=
"directive">Order
</code> ディレクティブで
1番目に
253 指定したディレクティブ(
<code class=
"directive"><a href=
"#allow">Allow
</a></code>
254 または
<code class=
"directive"><a href=
"#deny">Deny
</a></code>)を全て処理します。
255 第
2段階目で、残りのディレクティブ(
<code class=
"directive"><a href=
"#deny">Deny
</a></code> または
<code class=
"directive"><a href=
"#allow">Allow
</a></code>)
256 を全て処理します。第
3段階目で、第
1段階目と第
2段階目で
257 マッチしなかったリクエストを処理します。
</p>
259 <p>全ての
<code class=
"directive"><a href=
"#allow">Allow
</a></code> と
<code class=
"directive"><a href=
"#deny">Deny
</a></code> が処理され、結局のところ最後にマッチ
260 した条件が有効となることに注意してください。これは最初にマッチした条件だけが有効
261 となる、典型的なファイアウォールの動作とは異なっています。
262 また、設定ファイルに書く順番には意味はありません。
<code class=
"directive"><a href=
"#allow">Allow
</a></code> 行は全部一つのグループとして扱われ、
263 <code class=
"directive"><a href=
"#deny">Deny
</a></code> 行はもう一つのグループとみなされます。
264 またデフォルト状態は単独で一つのグループとみなされます。
</p>
266 <p><em>Order
</em> 設定は以下の以下のどれかです。
</p>
269 <dt><code>Allow,Deny
</code></dt>
271 <dd>まず
<code class=
"directive"><a href=
"#allow">Allow
</a></code>
272 ディレクティブが適用されます。どれにもマッチしなかった場合、この時点で
273 リクエストは拒否されます。次に、全ての
<code class=
"directive"><a href=
"# deny">
274 Deny
</a></code> ディレクティブが適用されます。どれか一つでもマッチした場合は、
276 最後に、
<code class=
"directive"><a href=
"#allow">Allow
</a></code> にも
<code class=
"directive"><a href=
"#deny">Deny
</a></code> にもマッチしなかったリクエストは
277 デフォルト設定が適用されるので拒否されます。
</dd>
279 <dt><code>Deny,Allow
</code></dt>
281 <dd>まず
<code class=
"directive"><a href=
"#deny">Deny
</a></code>
282 ディレクティブが適用されます。どれか一つでもマッチした場合は、
283 <code class=
"directive"><a href=
"#allow">Allow
</a></code> のどれにも
284 マッチ
<strong>しなければ
</strong>、アクセスは拒否されます。
285 どの
<code class=
"directive"><a href=
"#allow">Allow
</a></code> にも
<code class=
"directive"><a href=
"#deny">Deny
</a></code> にもマッチしないリクエストは
288 <dt><code>Mutual-failure
</code></dt>
290 <dd>これは
<code>Order Allow,Deny
</code> と全く同じ効果を持ち、
295 <p>キーワードの間に置けるのはコンマだけです。
296 間に
<em>空白があってはいけません
</em>。
</p>
298 <table class=
"bordered">
301 <th>Allow,Deny 時の結果
</th>
302 <th>Deny,Allow 時の結果
</th>
304 <th>Allow だけにマッチ
</th>
313 <td>2番目のディレクティブがデフォルト: 拒否
</td>
314 <td>2番目のディレクティブがデフォルト: 許可
</td>
316 <th>Allow と Deny 両方にマッチ
</th>
317 <td>最後にマッチしたほう: 拒否
</td>
318 <td>最後にマッチしたほう: 許可
</td>
323 ドメインのすべてのホストはアクセスを許可されます。
324 他のすべてのホストはアクセスを拒否されます。
</p>
326 <div class=
"example"><p><code>
327 Order Deny,Allow
<br />
329 Allow from apache.org
332 <p>次の例では、foo.apache.org サブドメインにあるホスト以外の、
333 apache.org ドメインのすべてのホストがアクセスを許可されます。
335 ドメインでないホストは、デフォルトの状態が
<code class=
"directive"><a href=
"#deny">Deny
</a></code> のため、
336 サーバへのアクセスを拒否されます。
</p>
338 <div class=
"example"><p><code>
339 Order Allow,Deny
<br />
340 Allow from apache.org
<br />
341 Deny from foo.apache.org
344 <p>一方、上の例の
<code class=
"directive">Order
</code> が
<code>Deny,Allow
</code>
345 に変わっていれば、すべのホストにアクセスが許可されます。
346 これは、設定ファイル中の実際の順番に関わらず、
347 <code>Allow from apache.org
</code> が最後に評価されて、
348 <code>Deny from foo.apache.org
</code> を上書きするからです。
349 <code>apache.org
</code>
350 ドメインにないホストも、デフォルトの状態が
<code class=
"directive"><a href=
"#allow">Allow
</a></code>
354 <p><code class=
"directive">Order
</code>
355 ディレクティブはデフォルトのアクセスの状態に影響を与えるので、
356 <code class=
"directive"><a href=
"../mod/mod_authz_host.html#allow">Allow
</a></code> ディレクティブと
357 <code class=
"directive"><a href=
"../mod/mod_authz_host.html#deny">Deny
</a></code>
358 ディレクティブが無くても、サーバのアクセスに影響を与えることができます。
361 <div class=
"example"><p><code>
362 <Directory /www
><br />
363 <span class=
"indent">
364 Order Allow,Deny
<br />
370 <code class=
"directive"><a href=
"#deny">Deny
</a></code> になるため、
371 <code>/www
</code> ディレクトリへのすべてのアクセスを拒否します。
374 <p><code class=
"directive">Order
</code>
375 ディレクティブはサーバの設定処理の各段階でだけ
376 アクセスディレクティブの処理の順番を変更します。これは、たとえば、
377 <code class=
"directive">Order
</code> ディレクティブの設定に関わらず、
378 <code class=
"directive"><a href=
"../mod/core.html#location"><Location
></a></code> セクションの
379 <code class=
"directive"><a href=
"#allow">Allow
</a></code> ディレクティブや
380 <code class=
"directive"><a href=
"#deny">Deny
</a></code> ディレクティブは、
381 <code class=
"directive"><a href=
"../mod/core.html#directory">Directory
</a></code> セクションや
382 <code>.htaccess
</code> ファイルの
<code class=
"directive"><a href=
"#allow">Allow
</a></code>
383 ディレクティブや
<code class=
"directive"><a href=
"#deny">Deny
</a></code>
384 ディレクティブよりも常に後に評価されるということを意味します。
386 <a href=
"../sections.html">Directory,Location, Files
387 セクションの動作方法
</a> を参照してください。
</p>
390 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
391 <div class=
"directive-section"><h2><a name=
"Satisfy" id=
"Satisfy">Satisfy
</a> <a name=
"satisfy" id=
"satisfy">ディレクティブ
</a></h2>
392 <table class=
"directive">
393 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ホストレベルのアクセス制御とユーザ認証との相互作用を指定
</td></tr>
394 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>Satisfy Any|All
</code></td></tr>
395 <tr><th><a href=
"directive-dict.html#Default">デフォルト:
</a></th><td><code>Satisfy All
</code></td></tr>
396 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>ディレクトリ, .htaccess
</td></tr>
397 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>AuthConfig
</td></tr>
398 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Extension
</td></tr>
399 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_access_compat
</td></tr>
400 <tr><th><a href=
"directive-dict.html#Compatibility">互換性:
</a></th><td>バージョン
2.0.51 以降では
<code class=
"directive"><a href=
"../mod/core.html#limit"><Limit
></a></code> ディレクティブと
<code class=
"directive"><a href=
"../mod/core.html#limitexcept"><LimitExcept
></a></code> ディレクティブの影響を受ける
403 <p><code class=
"directive"><a href=
"#allow">Allow
</a></code> と
404 <code class=
"directive"><a href=
"../mod/mod_authz_core.html#require">Require
</a></code> の両方が使われているときの
405 アクセスポリシーを設定します。パラメータは
<code>All
</code> か
<code>Any
</code>
406 です。このディレクティブはある場所へのアクセスがユーザ名/パスワード
407 <em>と
</em>クライアントのホストのアドレスで制限されているときにのみ
408 役立ちます。デフォルトの動作 (
<code>All
</code>) はクライアントがアドレスによる
409 アクセス制限を満たし、
<em>かつ
</em>正しいユーザ名とパスワードを入力することを
410 要求します。
<code>Any
</code> では、クライアントはホストの制限を満たすか、
411 正しいユーザ名とパスワードの入力をするかをすればアクセスを許可されます。
412 これは、ある場所をパスワードで保護するけれど、特定のアドレスからの
413 クライアントにはパスワードの入力を要求せずにアクセスを許可する、
416 <p>例えば、同じネットワーク上にいる人にはウェブサイトのある部分について
417 無制限のアクセスを許したいけれど、外のネットワークの人には
418 パスワードを提供させるようにするためには、次のような設定をすることが
421 <div class=
"example"><p><code>
422 Require valid-user
<br />
423 Allow from
192.168.1<br />
428 <code class=
"directive"><a href=
"../mod/core.html#limit"><Limit
></a></code> セクションと
429 <code class=
"directive"><a href=
"../mod/core.html#limitexcept"><LimitExcept
></a></code> セクションを使用することで
430 <code class=
"directive">Satisfy
</code> ディレクティブが
436 <li><code class=
"directive"><a href=
"#allow">Allow
</a></code></li>
437 <li><code class=
"directive"><a href=
"../mod/mod_authz_core.html#require">Require
</a></code></li>
441 <div class=
"bottomlang">
442 <p><span>言語:
</span><a href=
"../en/mod/mod_access_compat.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
443 <a href=
"../ja/mod/mod_access_compat.html" title=
"Japanese"> ja
</a></p>
444 </div><div id=
"footer">
445 <p class=
"apache">Copyright
2009 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>
446 <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>