1 <?xml version="1.0" encoding="iso-2022-jp"?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
4 <!-- English Revision: 105989 -->
7 Copyright 2002-2004 The Apache Software Foundation
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
22 <modulesynopsis metafile="mod_authz_host.xml.meta">
24 <name>mod_authz_host</name>
25 <description>
\e$B%[%9%H
\e(B (
\e$BL>A0$b$7$/$O
\e(B IP
\e$B%"%I%l%9
\e(B)
\e$B$K4p$E$$$?%0%k!<%W>5G'
\e(B</description>
27 <sourcefile>mod_authz_host.c</sourcefile>
28 <identifier>authz_host_module</identifier>
29 <compatibility>Apache 2.1
\e$B0J9_
\e(B</compatibility>
32 <p><module>mod_authz_host</module>
\e$B$K$h$jDs6!$5$l$k%G%#%l%/%F%#%V$O
\e(B
33 \e$B%5!<%P$NFCDj$NItJ,$X$N
\e(B
34 \e$B%"%/%;%9$r@)8f$9$k$?$a$K
\e(B <directive module="core" type="section"
35 >Directory</directive>, <directive module="core"
36 type="section">Files</directive>, <directive module="core"
37 type="section">Location</directive>
38 \e$B$H
\e(B <code><a href="core.html#accessfilename">.htaccess</a
39 ></code>
\e$B%U%!%$%k$G;HMQ$5$l$^$9!#%/%i%$%"%s%H$N%[%9%HL>!"
\e(BIP
40 \e$B%"%I%l%9$d
\e(B <a href="../env.html">
\e$B4D6-JQ?t
\e(B</a
41 >
\e$B$H$7$F<hF@$5$l$?!"$=$NB>$N%j%/%(%9%H$NFCD'$K4p$E$$$F
\e(B
42 \e$B%"%/%;%9@)8f$r9T$J$&$3$H$,$G$-$^$9!#
\e(B<directive
43 module="mod_authz_host">Allow</directive>
\e$B$H
\e(B
44 <directive module="mod_authz_host">Deny</directive>
\e$B%G%#%l%/%F%#%V$O
\e(B
45 \e$B$I$N$h$&$J%/%i%$%"%s%H$K%"%/%;%9$r
\e(B
46 \e$B5v2D$9$k!"$7$J$$$+$r;XDj$9$k$?$a$K;HMQ$5$l$^$9!#0lJ}!"
\e(B
47 <directive module="mod_authz_host">Order</directive>
\e$B%G%#%l%/%F%#%V$O
\e(B
48 \e$B%G%U%)%k%H$N%"%/%;%9>uBV$H!"
\e(B
49 <directive module="mod_authz_host">Allow</directive>
\e$B%G%#%l%/%F%#%V$H
\e(B
50 <directive module="mod_authz_host">Deny</directive>
51 \e$B%G%#%l%/%F%#%V$H$N$*8_$$$X$N1F6A$N;EJ}$r@_Dj$7$^$9!#
\e(B
54 <p>
\e$B%[%9%H$K$h$k%"%/%;%9@)8B$H%Q%9%o!<%I$K$h$kG'>Z$rF1;~$K
\e(B
55 \e$B9T$J$&$3$H$,2DG=$G$9!#$=$N>l9g!"$=$NFs$D$N@)8B$N4X78$r;XDj$9$k$?$a$K
\e(B
56 <directive module="core">Satisfy</directive>
57 \e$B%G%#%l%/%F%#%V$r;HMQ$7$^$9!#
\e(B</p>
59 <p>
\e$B0lHLE*$K$O!"%"%/%;%9@)8B%G%#%l%/%F%#%V$O$9$Y$F$N%"%/%;%9%a%=%C%I
\e(B
60 (<code>GET</code>, <code>PUT</code>, <code>POST</code>
\e$B$J$I
\e(B)
61 \e$B$KE,MQ$5$l$^$9!#$=$7$F!"$[$H$s$I$N>l9g$3$l$,K>$^$7$$F0:n$G$9!#
\e(B
62 \e$B$7$+$7!"
\e(B<directive module="core" type="section">Limit</directive>
63 \e$B%;%/%7%g%s$NCf$K%G%#%l%/%F%#%V$r=q$/$3$H$G!"
\e(B
64 \e$B0lIt$N%a%=%C%I$K$N$_@)8B$r$+$1$k$3$H$b$G$-$^$9!#
\e(B</p>
67 <seealso><directive module="core">Satisfy</directive></seealso>
68 <seealso><directive module="core">Require</directive></seealso>
72 <description>
\e$B%5!<%P$N$"$kNN0h$K%"%/%;%9$G$-$k%[%9%H$r@)8f$9$k
\e(B</description>
73 <syntax> Allow from all|<var>host</var>|env=<var>env-variable</var>
74 [<var>host</var>|env=<var>env-variable</var>] ...</syntax>
75 <contextlist><context>directory</context><context>.htaccess</context>
77 <override>Limit</override>
80 <p><directive>Allow</directive>
\e$B%G%#%l%/%F%#%V$O$I$N%[%9%H$,
\e(B
81 \e$B%5!<%P$N$"$kNN0h$r%"%/%;%9$G$-$k$+$K1F6A$rM?$($^$9!#
\e(B
82 \e$B%"%/%;%9$O%[%9%HL>!"
\e(BIP
\e$B%"%I%l%9!"
\e(BIP
\e$B%"%I%l%9$NHO0O$d!"
\e(B
83 \e$B4D6-JQ?t$H$7$F<hF@$5$l$?!"$=$NB>$N%/%i%$%"%s%H$N%j%/%(%9%H$N
\e(B
84 \e$BFCD'$K$h$C$F@)8f$9$k$3$H$,$G$-$^$9!#
\e(B</p>
86 <p>
\e$B$3$N%G%#%l%/%F%#%V$N:G=i$N0z?t$O>o$K
\e(B <code>from</code>
\e$B$G$9!#
\e(B
87 \e$B$=$l$KB3$/0z?t$O;0$D$N0c$C$?7A<0$,$"$j$^$9!#
\e(B<code>Allow from
88 all</code>
\e$B$,;XDj$5$l$F$$$l$P!"$9$Y$F$N%[%9%H$K%"%/%;%9$r5v2D$7!"
\e(B
89 \e$B%"%/%;%9@)8B$O2<$G@bL@$5$l$F$$$k$h$&$K!"
\e(B
90 <directive module="mod_authz_host">Deny</directive>
91 \e$B%G%#%l%/%F%#%V$H
\e(B <directive module="mod_authz_host">Order</directive>
92 \e$B%G%#%l%/%F%#%V$N@_Dj$G7h$^$j$^$9!#
\e(B
93 \e$BFCDj$N%[%9%H$d%[%9%H72$K$N$_%5!<%P$X$N%"%/%;%9$r5v2D$9$k$?$a$K$O!"
\e(B
94 \e$B0J2<$N$I$l$+$N7A<0$G
\e(B <em>host</em>
\e$B$r;XDj$9$k$3$H$,$G$-$^$9
\e(B:</p>
97 <dt>
\e$B%I%a%$%sL>
\e(B (
\e$B$N0lIt
\e(B)</dt>
100 <example><title>
\e$BNc
\e(B</title>
101 Allow from apache.org
103 <p>
\e$B$3$NJ8;zNs$K9g$&$+!"$3$l$G=*$o$kL>A0$N%[%9%H$N%"%/%;%9$,5v2D$5$l$^$9!#
\e(B
104 \e$B3FItJ,$,40A4$K9g$&$b$N$@$1$KE,MQ$5$l$^$9$N$G!">e$NNc$O
\e(B
105 <code>foo.apache.org</code>
\e$B$K$O%^%C%A$7$^$9$,!"
\e(B
106 <code>fooapache.org</code>
\e$B$K$O%^%C%A$7$^$;$s!#
\e(B
107 \e$B$3$N@_Dj$r$9$k$H!"
\e(BApache
\e$B$O
\e(B
108 <directive module="core">HostnameLookups</directive>
109 \e$B$N@_Dj$K4X$o$i$:!"%/%i%$%"%s%H$N
\e(B IP
\e$B%"%I%l%9$KBP$7$F
\e(B
110 DNS
\e$B$N
\e(B 2
\e$B=E5U0z$-$r9T$J$$$^$9!#
\e(B
111 \e$B%[%9%HL>$+$i%*%j%8%J%k$N
\e(B IP
\e$B%"%I%l%9$r=g0z$-$7$^$9!#
\e(B
112 \e$B=g0z$-$H5U0z$-$,0lCW$7!"%[%9%HL>$,3:Ev$7$?>l9g$K$N$_!"
\e(B
113 \e$B%"%/%;%9$,5v2D$5$l$^$9!#
\e(B</p></dd>
115 <dt>
\e$B40A4$J
\e(B IP
\e$B%"%I%l%9
\e(B</dt>
118 <example><title>
\e$BNc
\e(B</title>
121 <p>
\e$B%"%/%;%9$r5v2D$9$k
\e(B IP
\e$B%"%I%l%9$G$9!#
\e(B</p></dd>
123 <dt>IP
\e$B%"%I%l%9$N0lIt
\e(B</dt>
126 <example><title>
\e$BNc
\e(B</title>
129 <p>
\e$B%5%V%M%C%H$N@)8BMQ$N!"
\e(BIP
130 \e$B%"%I%l%9$N:G=i$N0l$D$+$i;0$D$^$G$N%P%$%H$G$9!#
\e(B</p></dd>
132 <dt>
\e$B%M%C%H%o!<%/
\e(B/
\e$B%M%C%H%^%9%/
\e(B
\e$B$NBP
\e(B</dt>
135 <example><title>
\e$BNc
\e(B</title>
136 Allow from 10.1.0.0/255.255.0.0
138 <p>
\e$B%M%C%H%o!<%/
\e(B a.b.c.d
\e$B$H%M%C%H%^%9%/
\e(B w.x.y.z
\e$B$G$9!#
\e(B
139 \e$B$h$j:YN3EY$N%5%V%M%C%H@)8BMQ$G$9!#
\e(B</p></dd>
141 <dt>
\e$B%M%C%H%o!<%/
\e(B/nnn CIDR
\e$B;XDj
\e(B</dt>
144 <example><title>
\e$BNc
\e(B</title>
145 Allow from 10.1.0.0/16
147 <p>
\e$B%M%C%H%^%9%/$,
\e(B nnn
\e$B$N>e0L%S%C%H$,
\e(B 1
148 \e$B$H$J$C$F$$$k$b$N$+$i$J$k$3$H0J30$OA0$N$b$N$HF1$8$G$9!#
\e(B</p></dd>
151 <p>
\e$BCm
\e(B:
\e$B:G8e$N;0$D$NNc$O$^$C$?$/F1$8%[%9%H$K9g$$$^$9!#
\e(B</p>
154 <p>IPv6
\e$B%"%I%l%9$H
\e(B IPv6
\e$B$N%5%V%M%C%H$O0J2<$N$h$&$K;XDj$G$-$^$9
\e(B:</p>
157 Allow from fe80::a00:20ff:fea7:ccea<br />
158 Allow from fe80::a00:20ff:fea7:ccea/10
161 <p><directive>Allow</directive>
\e$B%G%#%l%/%F%#%V$N0z?t$N;0$DL\$N7A<0$O!"
\e(B
162 <a href="../env.html">
\e$B4D6-JQ?t
\e(B</a>
163 \e$B$NB8:_$K$h$j%"%/%;%9$N@)8f$r9T$J$($k$h$&$K$9$k$b$N$G$9!#
\e(B
164 <code>Allow from env=<var>env-variable</var></code>
165 \e$B$,;XDj$5$l$F$$$k$H!"4D6-JQ?t
\e(B <var>env-variable</var>
166 \e$B$,B8:_$7$?>l9g$K%j%/%(%9%H$O%"%/%;%9$r5v2D$5$l$^$9!#%5!<%P$O
\e(B
167 <module>mod_setenvif</module>
168 \e$B$N%G%#%l%/%F%#%V$K$h$j!"%/%i%$%"%s%H$N%j%/%(%9%H
\e(B
169 \e$B$NFCD'$K4p$E$$$F=@Fp$K4D6-JQ?t$r@_Dj$9$k5!G=$rDs6!$7$^$9!#
\e(B
170 \e$B$G$9$+$i!"$3$N%G%#%l%/%F%#%V$O%/%i%$%"%s%H$N
\e(B
171 <code>User-Agent</code> (
\e$B%V%i%&%6$N<oN`
\e(B)
\e$B!"
\e(B<code>Referer</code>
172 \e$B$dB>$N
\e(B HTTP
\e$B%j%/%(%9%H$N%X%C%@%U%#!<%k%I$J$I$K4p$E$$$F
\e(B
173 \e$B%"%/%;%95v2D$r$9$k$?$a$K;H$&$3$H$,$G$-$^$9!#
\e(B
176 <example><title>Example:</title>
177 SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in<br />
178 <Directory /docroot><br />
180 Order Deny,Allow<br />
182 Allow from env=let_me_in<br />
187 <p>
\e$B$3$N>l9g!"
\e(Buser-agent
\e$B$NJ8;zNs$,
\e(B <code>KnockKnock/2.0</code>
188 \e$B$G;O$^$k%V%i%&%6$N$_$,%"%/%;%9$r5v2D$5$l!"
\e(B
189 \e$BB>$N$b$N$O%"%/%;%9$r5qH]$5$l$^$9!#
\e(B</p>
196 <description>
\e$B%5!<%P$,%"%/%;%9$r5qH]$9$k%[%9%H$r@)8f$9$k
\e(B</description>
197 <syntax> Deny from all|<var>host</var>|env=<var>env-variable</var>
198 [<var>host</var>|env=<var>env-variable</var>] ...</syntax>
199 <contextlist><context>directory</context><context>.htaccess</context>
201 <override>Limit</override>
203 <p>
\e$B$3$N%G%#%l%/%F%#%V$O%[%9%HL>!"
\e(BIP
204 \e$B%"%I%l%9!"4D6-JQ?t$K4p$E$$$F%5!<%P$X$N%"%/%;%9$r@)8B$7$^$9!#
\e(B
205 <directive>Deny</directive>
\e$B%G%#%l%/%F%#%V$N0z?t$O
\e(B <directive
206 module="mod_authz_host">Allow</directive>
207 \e$B%G%#%l%/%F%#%V$H$^$C$?$/F1$8$G$9!#
\e(B</p>
214 <description>
\e$B%G%U%)%k%H$N%"%/%;%92DG=$J>uBV$H!"
\e(B<directive>Allow</directive>
\e$B$H
\e(B
215 <directive>Deny</directive>
\e$B$,I>2A$5$l$k=gHV$r@)8f$9$k
\e(B</description>
216 <syntax> Order <var>ordering</var></syntax>
217 <default>Order Deny,Allow</default>
218 <contextlist><context>directory</context><context>.htaccess</context>
220 <override>Limit</override>
223 <p><directive>Order</directive>
\e$B%G%#%l%/%F%#%V$O%G%U%)%k%H$N%"%/%;%9$N>uBV$H
\e(B
224 <directive module="mod_authz_host">Allow</directive>
\e$B%G%#%l%/%F%#%V$H
\e(B
225 <directive module="mod_authz_host">Deny</directive>
226 \e$B%G%#%l%/%F%#%V$,I>2A$5$l$k=gHV$r@)8f$7$^$9!#
\e(B
227 <var>Ordering</var>
\e$B$O0J2<$N$I$l$+$G$9!#
\e(B</p>
230 <dt><code>Deny,Allow</code></dt>
232 <dd><directive module="mod_authz_host">Deny</directive>
\e$B%G%#%l%/%F%#%V$,
\e(B
233 <directive module="mod_authz_host">Allow</directive>
234 \e$B%G%#%l%/%F%#%V$NA0$KI>2A$5$l$^$9!#
\e(B
235 \e$B%"%/%;%9$O%G%U%)%k%H$G5v2D$5$l$^$9!#
\e(B<directive
236 module="mod_authz_host">Deny</directive>
237 \e$B%G%#%l%/%F%#%V$K9g$o$J$$$+!"
\e(B<directive module="mod_authz_host">Allow</directive>
238 \e$B%G%#%l%/%F%#%V$K9g$&%/%i%$%"%s%H$O%"%/%;%9$r5v2D$5$l$^$9!#
\e(B</dd>
240 <dt><code>Allow,Deny</code></dt>
242 <dd><directive module="mod_authz_host">Allow</directive>
243 \e$B%G%#%l%/%F%#%V$,
\e(B <directive
244 module="mod_authz_host">Deny</directive>
245 \e$B%G%#%l%/%F%#%V$NA0$KI>2A$5$l$^$9!#
\e(B
246 \e$B%"%/%;%9$O%G%U%)%k%H$G5qH]$5$l$^$9!#
\e(B<directive
247 module="mod_authz_host">Allow</directive>
248 \e$B%G%#%l%/%F%#%V$K9g$o$J$$$+!"
\e(B<directive module="mod_authz_host">Deny</directive>
249 \e$B%G%#%l%/%F%#%V$K9g$&%/%i%$%"%s%H$O%"%/%;%9$r5qH]$5$l$^$9!#
\e(B
252 <dt><code>Mutual-failure</code></dt>
254 <dd><directive module="mod_authz_host">Allow</directive>
\e$B$N%j%9%H$K8=$l$F!"
\e(B
255 <directive module="mod_authz_host">Deny</directive>
256 \e$B$N%j%9%H$K8=$l$J$$%[%9%H$N$_$,%"%/%;%9$r5v2D$5$l$^$9!#
\e(B
257 \e$B$3$N=gHVIU$1$O
\e(B <code>Order Allow,Deny</code>
\e$B$HF1$88z2L$r;}$A!"
\e(B
258 \e$B$=$N@_Dj$NJ}$,9%$^$7$$$?$a$KHs?d>)$H$J$C$F$$$^$9!#
\e(B</dd>
261 <p>
\e$B%-!<%o!<%I$O%3%s%^$GJ,N%$9$k$3$H$@$1$,2DG=$G$9!#
\e(B
262 \e$B4V$K
\e(B<em>
\e$B6uGr$,$"$C$F$O$$$1$^$;$s
\e(B</em>
\e$B!#$I$N>l9g$G$b!"
\e(B<directive
263 module="mod_authz_host">Allow</directive>
\e$B$H
\e(B
264 <directive module="mod_authz_host">Deny</directive>
\e$BJ8$O
\e(B
265 \e$BA4$FI>2A$5$l$k$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#
\e(B
268 <p>
\e$B0J2<$NNc$G$O!"
\e(Bapache.org
269 \e$B%I%a%$%s$N$9$Y$F$N%[%9%H$O%"%/%;%9$r5v2D$5$l$^$9!#
\e(B
270 \e$BB>$N$9$Y$F$N%[%9%H$O%"%/%;%9$r5qH]$5$l$^$9!#
\e(B</p>
273 Order Deny,Allow<br />
275 Allow from apache.org
278 <p>
\e$B<!$NNc$G$O!"
\e(Bfoo.apache.org
\e$B%5%V%I%a%$%s$K$"$k%[%9%H0J30$N!"
\e(B
279 apache.org
\e$B%I%a%$%s$N$9$Y$F$N%[%9%H$,%"%/%;%9$r5v2D$5$l$^$9!#
\e(B
281 \e$B%I%a%$%s$G$J$$%[%9%H$O!"%G%U%)%k%H$N>uBV$,%"%/%;%95qH]$N$?$a!"
\e(B
282 \e$B%5!<%P$X$N%"%/%;%9$r5qH]$5$l$^$9!#
\e(B</p>
285 Order Allow,Deny<br />
286 Allow from apache.org<br />
287 Deny from foo.apache.org
290 <p>
\e$B0lJ}!">e$NNc$N
\e(B <directive>Order</directive>
\e$B$,
\e(B <code>Deny,Allow</code>
291 \e$B$KJQ$o$C$F$$$l$P!"$9$Y$N%[%9%H$K%"%/%;%9$,5v2D$5$l$^$9!#
\e(B
292 \e$B$3$l$O!"@_Dj%U%!%$%kCf$N<B:]$N=gHV$K4X$o$i$:!"
\e(B
293 <code>Allow from apache.org</code>
\e$B$,:G8e$KI>2A$5$l$F!"
\e(B
294 <code>Deny from foo.apache.org</code>
\e$B$r>e=q$-$9$k$+$i$G$9!#
\e(B
295 <code>apache.org</code>
296 \e$B%I%a%$%s$K$J$$%[%9%H$b!"%G%U%)%k%H$N>uBV$,
\e(B <em>allow</em>
297 \e$B$KJQ2=$9$k$?$a$K!"%"%/%;%9$r5v2D$5$l$^$9!#
\e(B
300 <p><directive>Order</directive>
301 \e$B%G%#%l%/%F%#%V$O%G%U%)%k%H$N%"%/%;%9$N>uBV$K1F6A$rM?$($k$N$G!"
\e(B
302 <directive module="mod_authz_host">Allow</directive>
\e$B%G%#%l%/%F%#%V$H
\e(B
303 <directive module="mod_authz_host">Deny</directive>
304 \e$B%G%#%l%/%F%#%V$,L5$/$F$b!"%5!<%P$N%"%/%;%9$K1F6A$rM?$($k$3$H$,$G$-$^$9!#
\e(B
305 \e$B$?$H$($P!"
\e(B</p>
308 <Directory /www><br />
310 Order Allow,Deny<br />
315 <p>
\e$B$O%G%U%)%k%H$N%"%/%;%9>uBV$,
\e(B <em>deny</em>
\e$B$K$J$k$?$a!"
\e(B
316 <code>/www</code>
\e$B%G%#%l%/%H%j$X$N$9$Y$F$N%"%/%;%9$r5qH]$7$^$9!#
\e(B
319 <p><directive>Order</directive>
320 \e$B%G%#%l%/%F%#%V$O%5!<%P$N@_Dj=hM}$N3FCJ3,$G$@$1
\e(B
321 \e$B%"%/%;%9%G%#%l%/%F%#%V$N=hM}$N=gHV$rJQ99$7$^$9!#$3$l$O!"$?$H$($P!"
\e(B
322 <directive>Order</directive>
\e$B%G%#%l%/%F%#%V$N@_Dj$K4X$o$i$:!"
\e(B
323 <directive module="core" type="section">Location</directive>
\e$B%;%/%7%g%s$N
\e(B
324 <directive module="mod_authz_host">Allow</directive>
\e$B%G%#%l%/%F%#%V$d
\e(B
325 <directive module="mod_authz_host">Deny</directive>
\e$B%G%#%l%/%F%#%V$O!"
\e(B
326 <directive module="core" type="sectino">Directory</directive>
\e$B%;%/%7%g%s$d
\e(B
327 <code>.htaccess</code>
\e$B%U%!%$%k$N
\e(B <directive
328 module="mod_authz_host">Allow</directive>
329 \e$B%G%#%l%/%F%#%V$d
\e(B <directive module="mod_authz_host">Deny</directive>
330 \e$B%G%#%l%/%F%#%V$h$j$b>o$K8e$KI>2A$5$l$k$H$$$&$3$H$r0UL#$7$^$9!#
\e(B
331 \e$B@_Dj%;%/%7%g%s$N%^!<%8$N>\:Y$K$D$$$F$O!"
\e(B
332 <a href="../sections.html">Directory,Location, Files
333 \e$B%;%/%7%g%s$NF0:nJ}K!
\e(B</a>
\e$B$r;2>H$7$F$/$@$5$$!#
\e(B</p>