1 <?xml version="1.0" encoding="iso-2022-jp"?>
2 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
4 <!-- English Revision: 151408 -->
7 Copyright 2003-2005 The Apache Software Foundation or its licensors,
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <manualpage metafile="sections.xml.meta">
25 <title>
\e$B%;%/%7%g%s$N@_Dj
\e(B</title>
27 <summary> <p><a href="configuring.html">
\e$B@_Dj%U%!%$%k
\e(B</a>
\e$BCf$N%G%#%l%/%F%#%V$O
\e(B
28 \e$B%5!<%PA4BN$KE,MQ$5$l$?$j!"FCDj$N%G%#%l%/%H%j$d%U%!%$%k!"%[%9%H!"
\e(BURL
\e$B$K$N$_
\e(B
29 \e$BE,MQ$5$l$k$h$&$K@)8B$7$?$j$9$k$3$H$,$G$-$^$9!#$3$NJ8=q$O@_DjMQ$N%;%/%7%g%s$N
\e(B
30 \e$B%3%s%F%J$d
\e(B <code>.htaccess</code>
\e$B%U%!%$%k$r;H$C$FB>$N@_Dj%G%#%l%/%F%#%V$N
\e(B
31 \e$B%9%3!<%W$rJQ99$9$kJ}K!$r@bL@$7$^$9!#
\e(B</p>
34 <section id="types"><title>
\e$B@_DjMQ%;%/%7%g%s%3%s%F%J$N<oN`
\e(B</title>
39 <module>mod_proxy</module>
42 <directive type="section" module="core">Directory</directive>
43 <directive type="section" module="core">DirectoryMatch</directive>
44 <directive type="section" module="core">Files</directive>
45 <directive type="section" module="core">FilesMatch</directive>
46 <directive type="section" module="core">IfDefine</directive>
47 <directive type="section" module="core">IfModule</directive>
48 <directive type="section" module="core">Location</directive>
49 <directive type="section" module="core">LocationMatch</directive>
50 <directive type="section" module="mod_proxy">Proxy</directive>
51 <directive type="section" module="mod_proxy">ProxyMatch</directive>
52 <directive type="section" module="core">VirtualHost</directive>
56 <p>
\e$B%3%s%F%J$K$OFs$D$N4pK\$H$J$k<oN`$,$"$j$^$9!#$[$H$s$I$N%3%s%F%J$O
\e(B
57 \e$B3F%j%/%(%9%H$KBP$7$FI>2A$5$l$^$9!#$=$N>l9g!"%3%s%F%JCf$N%G%#%l%/%F%#%V$O
\e(B
58 \e$B%3%s%F%J$K%^%C%A$9$k%j%/%(%9%H$K$N$_E,MQ$5$l$^$9!#
\e(B
59 \e$B0lJ}!"
\e(B<directive type="section"
60 module="core">IfDefine</directive>
\e$B%3%s%F%J$H
\e(B <directive
61 type="section" module="core">IfModule</directive>
\e$B%3%s%F%J$O
\e(B
62 \e$B%5!<%P$N5/F0;~$H:F5/F0;~$K$N$_I>2A$5$l$^$9!#5/F0;~$K>r7o$,??$G$"$l$P!"
\e(B
63 \e$B%3%s%F%JCf$N%G%#%l%/%F%#%V$O$9$Y$F$N%j%/%(%9%H$KE,MQ$5$l$^$9!#>r7o$,
\e(B
64 \e$B56$G$"$l$P!"%3%s%F%JCf$N%G%#%l%/%F%#%V$OL5;k$5$l$^$9!#
\e(B</p>
66 <p><directive type="section" module="core">IfDefine</directive>
\e$B%G%#%l%/%F%#%V$O
\e(B
67 <program>httpd</program>
\e$B%3%^%s%I%i%$%s$GE,@Z$J%Q%i%a!<%?$,Dj5A$5$l$?$H$-$K$N$_
\e(B
68 \e$BE,MQ$5$l$k%G%#%l%/%F%#%V$r0O$$$^$9!#Nc$($P<!$N@_Dj$G$O!"%5!<%P$,
\e(B
69 <code>httpd -DClosedForNow</code>
\e$B$r;H$C$F5/F0$5$l$?$H$-$@$1$9$Y$F$N
\e(B
70 \e$B%j%/%(%9%H$rJL$N%5%$%H$K%j%@%$%l%/%H$7$^$9
\e(B:</p>
73 <IfDefine ClosedForNow><br />
74 Redirect / http://otherserver.example.com/<br />
78 <p><directive type="section" module="core">IfModule</directive>
\e$B$O
\e(B
79 \e$BHs>o$K;w$F$$$^$9$,!"Be$o$j$K%5!<%P>e$G%b%8%e!<%k$,;HMQ2DG=$J>l9g$K$N$_
\e(B
80 \e$BE,MQ2DG=$J%G%#%l%/%F%#%V$r0O$$$^$9!#%b%8%e!<%k$O%5!<%P$K
\e(B
81 \e$B@EE*$KAH$_9~$^$l$F$$$k$+!"F0E*$KAH$_9~$`$h$&$K$J$C$F$$$F!"@_Dj%U%!%$%kCf$G
\e(B
82 <directive module="mod_so">LoadModule</directive>
\e$B$N9T$,$h$jA0$N
\e(B
83 \e$BItJ,$K=q$+$l$F$$$kI,MW$,$"$j$^$9!#$3$N%G%#%l%/%F%#%V$OFCDj$N%b%8%e!<%k$N
\e(B
84 \e$BB8:_$K4X$o$i$:@_Dj%U%!%$%k$,F0:n$9$kI,MW$,$"$k>l9g$K$N$_;H$C$F$/$@$5$$!#
\e(B
85 \e$B>o$KF0:n$7$FM_$7$$%G%#%l%/%F%#%V$r0O$`$?$a$K;H$&$Y$-$G$O$"$j$^$;$s!#
\e(B
86 \e$BB8:_$7$J$$%b%8%e!<%k$K4X$9$kM-MQ$J%(%i!<%a%C%;!<%8$NH/@8$rM^@)$7$F$7$^$$$^$9$N$G!#
\e(B
89 <p>
\e$B<!$NNc$G$O!"
\e(B<module>mod_mime_magic</module>
\e$B$,$"$k$H$-$K$N$_
\e(B <directive
90 module="mod_mime_magic">MimeMagicFiles</directive>
\e$B%G%#%l%/%F%#%V$,
\e(B
91 \e$BE,MQ$5$l$^$9!#
\e(B</p>
94 <IfModule mod_mime_magic.c><br />
95 MimeMagicFile conf/magic<br />
99 <p><directive type="section" module="core">IfDefine</directive>
\e$B%G%#%l%/%F%#%V$H
\e(B
100 <directive type="section" module="core">IfModule</directive>
\e$B%G%#%l%/%F%#%V$O
\e(B
101 \e$B%F%9%H$NA0$K
\e(B "!"
\e$B$rIU$1$k$3$H$GH]Dj$N>r7o$rE,MQ$9$k$3$H$,$G$-$^$9!#
\e(B
102 \e$B$^$?!"$3$l$i$N%;%/%7%g%s$O$h$jJ#;($J@)8B$r2]$9$?$a$KF~$l;R$K$9$k$3$H$,$G$-$^$9!#
\e(B
106 <section id="file-and-web"><title>
\e$B%U%!%$%k%7%9%F%`$H%&%'%V6u4V
\e(B</title>
108 <p>
\e$B:G$b$h$/;H$o$l$k@_Dj$N%;%/%7%g%s%3%s%F%J$O%U%!%$%k%7%9%F%`$d%&%'%V6u4V$N
\e(B
109 \e$BFCDj$N>l=j$N@_Dj$rJQ99$9$k$b$N$G$9!#$^$:!"$3$NFs$D$N0c$$$rM}2r$9$k$3$H$,
\e(B
110 \e$BBg@Z$G$9!#%U%!%$%k%7%9%F%`$O%*%Z%l!<%F%#%s%0%7%9%F%`$+$i8+$?%G%#%9%/$NFbMF$G$9!#
\e(B
111 \e$B$?$H$($P!"%G%U%)%k%H$N%$%s%9%H!<%k$G$O
\e(B Apache
\e$B$O
\e(B Unix
\e$B%U%!%$%k%7%9%F%`$G$O
\e(B
112 <code>/usr/local/apache2</code>
\e$B$K!"
\e(BWindows
\e$B%U%!%$%k%7%9%F%`$G$O
\e(B
113 <code>"c:/Program Files/Apache Group/Apache2"</code>
\e$B$KB8:_$7$^$9!#
\e(B
114 (Apache
\e$B$G$O
\e(B Windows
\e$B$G$b%Q%9%;%Q%l!<%?$H$7$F%9%i%C%7%e$r;H$&$3$H$K
\e(B
115 \e$B5$$r$D$1$F$/$@$5$$!#
\e(B)
\e$BBP>HE*$K!"%&%'%V6u4V$O$"$J$?$N%5%$%H$r
\e(B
116 \e$B%&%'%V%5!<%P$+$iG[?.$5$l$k$b$N$H$7$F8+$?$b$N$G!"%/%i%$%"%s%H$K8+$($k$b$N$G$9!#
\e(B
117 \e$B%G%U%)%k%H$N
\e(B Unix
\e$B>e$N
\e(B Apache
\e$B$N%$%s%9%H!<%k$G$O%&%'%V6u4V$N
\e(B
118 <code>/dir/</code>
\e$B$H$$$&%Q%9$O%U%!%$%k%7%9%F%`$N
\e(B
119 <code>/usr/local/apache2/htdocs/dir/</code>
\e$B$H$$$&%Q%9$KBP1~$7$^$9!#
\e(B
120 \e$B%&%'%V%Z!<%8$O%G!<%?%Y!<%9$dB>$N>l=j$+$iF0E*$K@8@.$9$k$3$H$b$G$-$^$9$N$G!"
\e(B
121 \e$B%&%'%V6u4V$O%U%!%$%k%7%9%F%`$KD>@\%^%C%W$9$kI,MW$O$"$j$^$;$s!#
\e(B</p>
123 <section id="filesystem"><title>
\e$B%U%!%$%k%7%9%F%`%3%s%F%J
\e(B</title>
125 <p><directive type="section" module="core">Directory</directive>
\e$B%G%#%l%/%F%#%V$H
\e(B
126 <directive type="section" module="core">Files</directive>
\e$B%G%#%l%/%F%#%V!"$=$l$H
\e(B
127 \e$B$=$l$i$N@55,I=8=HG$O%G%#%l%/%F%#%V$r%U%!%$%k%7%9%F%`$N0lItJ,$KBP$7$FE,MQ$7$^$9!#
\e(B
128 <directive type="section" module="core">Directory</directive>
\e$B%;%/%7%g%s$N
\e(B
129 \e$BCf$N%G%#%l%/%F%#%V$O;XDj$5$l$?%G%#%l%/%H%j$H$=$N$9$Y$F$N%5%V%G%#%l%/%H%j$K
\e(B
130 \e$BE,MQ$5$l$^$9!#
\e(B<a href="howto/htaccess.html">.htaccess
\e$B%U%!%$%k
\e(B</a>
\e$B$r
\e(B
131 \e$B;H$&$3$H$G$bF1$88z2L$rF@$k$3$H$,$G$-$^$9!#Nc$($P!"<!$N@_Dj$G$O
\e(B
132 <code>/var/web/dir1</code>
\e$B$H$9$Y$F$N%5%V%G%#%l%/%H%j$KBP$7$F
\e(B
133 \e$B%G%#%l%/%H%j%$%s%G%C%/%9$r9T$J$$$^$9!#
\e(B</p>
136 <Directory /var/web/dir1><br />
137 Options +Indexes<br />
141 <p><directive type="section" module="core">Files</directive>
\e$B%;%/%7%g%s$N
\e(B
142 \e$BCf$K$"$k%G%#%l%/%F%#%V$O$I$N%G%#%l%/%H%j$K$"$k$+$K4X$o$i$:!";XDj$5$l$?L>A0$N
\e(B
143 \e$B$9$Y$F$N%U%!%$%k$KE,MQ$5$l$^$9!#$G$9$+$iNc$($P0J2<$N@_Dj%G%#%l%/%F%#%V$,
\e(B
144 \e$B@_Dj%U%!%$%k$N<g%;%/%7%g%s$K=q$+$l$?$H$-$K$O!"$9$Y$F$N>l=j$N
\e(B
145 <code>private.html</code>
\e$B$H$$$&L>A0$N%U%!%$%k$X$N%"%/%;%9$r5qH]$7$^$9!#
\e(B</p>
148 <Files private.html><br />
149 Order allow,deny<br />
154 <p>
\e$B%U%!%$%k%7%9%F%`$NFCDj$N>l=j$K$"$k%U%!%$%k$r;XDj$9$k$?$a$K!"
\e(B
155 <directive type="section" module="core">Files</directive>
\e$B%;%/%7%g%s$H
\e(B
156 <directive type="section" module="core">Directory</directive>
\e$B%;%/%7%g%s$r
\e(B
157 \e$BAH$_9g$o$;$k$3$H$,$G$-$^$9!#Nc$($P!"<!$N@_Dj$G$O
\e(B
158 <code>/var/web/dir1/private.html</code>,
159 <code>/var/web/dir1/subdir2/private.html</code>,
160 <code>/var/web/dir1/subdir3/private.html</code>
\e$B$J$I!"
\e(B
161 <code>/var/web/dir1/</code>
\e$B%G%#%l%/%H%j$N2<$K$"$k$9$Y$F$N
\e(B
162 <code>private.html</code>
\e$B$X$N%"%/%;%9$r5qH]$7$^$9!#
\e(B</p>
165 <Directory /var/web/dir1><br />
166 <Files private.html><br />
167 Order allow,deny<br />
174 <section id="webspace"><title>
\e$B%&%'%V6u4V%3%s%F%J
\e(B</title>
176 <p>
\e$B0lJ}!"
\e(B<directive type="section" module="core">Location</directive>
177 \e$B%G%#%l%/%F%#%V$H$=$N@55,I=8=HG$O%&%'%V6u4V>e$NFbMF$KBP$7$F@_Dj$rJQ99$7$^$9!#
\e(B
178 \e$B$?$H$($P!"<!$N@_Dj$G$O
\e(B /private
\e$B$G;O$^$k
\e(B URL
\e$B%Q%9$X$N%"%/%;%9$r@)8B$7$^$9!#
\e(B
180 <code>http://yoursite.example.com/private</code>,
181 <code>http://yoursite.example.com/private123</code>,
182 <code>http://yoursite.example.com/private/dir/file.html</code>
183 \e$B$X$N%j%/%(%9%H$d!"
\e(B
184 \e$BB>$NF1MM$K
\e(B <code>/private</code>
\e$BJ8;zNs$G;O$^$k%j%/%(%9%H$K
\e(B
185 \e$BE,MQ$5$l$^$9!#
\e(B</p>
188 <Location /private><br />
189 Order Allow,Deny<br />
194 <p><directive type="section" module="core">Location</directive>
195 \e$B%G%#%l%/%F%#%V$O%U%!%$%k%7%9%F%`$H4X78$"$kI,MW$,A4$/$"$j$^$;$s!#
\e(B
196 \e$B$?$H$($P<!$NNc$G$O!"$I$N$h$&$K$7$FFCDj$N
\e(B URL
\e$B$r
\e(B
197 <module>mod_status</module>
\e$B$GDs6!$5$l$F$$$k
\e(B Apache
198 \e$BFbIt%O%s%I%i$K%^%C%W$9$k$+$r<($7$F$$$^$9!#%U%!%$%k%7%9%F%`$K
\e(B
199 <code>server-status</code>
\e$B$H$$$&%U%!%$%k$,B8:_$9$kI,MW$O$"$j$^$;$s!#
\e(B</p>
202 <Location /server-status><br />
203 SetHandler server-status<br />
208 <section id="wildcards"><title>
\e$B%o%$%k%I%+!<%I$H@55,I=8=
\e(B</title>
210 <p><directive type="section" module="core">Directory</directive>,
211 <directive type="section" module="core">Files</directive>,
212 <directive type="section" module="core">Location</directive>
213 \e$B%G%#%l%/%F%#%V$G$O!"
\e(B C
\e$BI8=`%i%$%V%i%j$N
\e(B <code>fnmatch</code>
\e$B$N$h$&$K
\e(B
214 shell
\e$B%9%?%$%k$N%o%$%k%I%+!<%I%-%c%i%/%?$,;HMQ$G$-$^$9!#
\e(B
215 "*"
\e$BJ8;z$OG$0U$NJ8;zNs$K%^%C%A$7!"
\e(B"?"
\e$BJ8;z$OG$0U$N
\e(B 1
\e$BJ8;z$K%^%C%A$7!"
\e(B
216 "[<em>seq</em>]"
\e$B$O
\e(B <em>seq</em>
\e$B$NG$0U$NJ8;z$K%^%C%A$7$^$9!#
\e(B
217 "/"
\e$BJ8;z$O$I$N%o%$%k%I%+!<%I$G$b%^%C%A$5$l$^$;$s!#
\e(B
218 \e$BL@<(E*$K;XDj$9$kI,MW$,$"$j$^$9!#
\e(B</p>
220 <p>
\e$B$3$l$h$j=@Fp$J%^%C%A%s%0$,I,MW$J>l9g$O!"$3$l$i$N%3%s%F%J$K@55,I=8=
\e(B
221 (regex)
\e$BHG$G$"$k
\e(B
222 <directive type="section" module="core">DirectoryMatch</directive>,
223 <directive type="section" module="core">FilesMatch</directive>,
224 <directive type="section" module="core">LocationMatch</directive>
225 \e$B$,$"$j!"%^%C%A$rA*Br$9$k$N$K
\e(B perl
\e$B8_49
\e(B<a href="glossary.html#regex"
226 >
\e$B@55,I=8=
\e(B</a>
\e$B$r;HMQ$G$-$^$9!#$7$+$7!"<!$N@_Dj$N%^!<%8$KL\$rDL$7$F!"
\e(B
227 regex
\e$B%;%/%7%g%s$r;HMQ$9$k$3$H$G!"%G%#%l%/%F%#%V$NE,MQ$,$I$N$h$&$K
\e(B
228 \e$BJQ2=$9$k$+GD0.$7$F$*$$$F$/$@$5$$!#
\e(B</p>
230 <p>
\e$BA4%f!<%6%G%#%l%/%H%j$N@_Dj$rJQ99$9$k!"Hs
\e(B regex
231 \e$B%o%$%k%I%+!<%I%;%/%7%g%s$O<!$N$h$&$K$J$j$^$9!#
\e(B</p>
234 <Directory /home/*/public_html><br />
235 Options Indexes<br />
239 <p>regex
\e$B%;%/%7%g%s$r;HMQ$9$k$3$H$G!"2hA|%U%!%$%k$NB?$/$N%?%$%W$KBP$9$k
\e(B
240 \e$B%"%/%;%9$r0lEY$K5qH]$G$-$^$9!#
\e(B</p>
242 <FilesMatch \.(?i:gif|jpe?g|png)$><br />
243 Order allow,deny<br />
250 <section id="whichwhen"><title>
\e$B$$$D2?$r;H$&$+
\e(B</title>
252 <p>
\e$B%U%!%$%k%7%9%F%`%3%s%F%J$H%&%'%V6u4V%3%s%F%J$r;H$$J,$1$k$N$O!"
\e(B
253 \e$B<B:]$K$OHs>o$K4JC1$G$9!#%U%!%$%k%7%9%F%`$K0MB8$9$k
\e(B
254 \e$B%*%V%8%'%/%H$K%G%#%l%/%F%#%V$rE,1~$9$k>l9g$O!"I,$:
\e(B
255 <directive type="section" module="core">Directory</directive>
\e$B$+
\e(B
256 <directive type="section" module="core">Files</directive>
257 \e$B$r;HMQ$7$^$9!#%U%!%$%k%7%9%F%`$K0MB8$7$J$$%*%V%8%'%/%H
\e(B
258 (
\e$B%G!<%?%Y!<%9$+$i@8@.$5$l$k%&%'%V%Z!<%8$J$I
\e(B)
259 \e$B$K%G%#%l%/%F%#%V$rE,MQ$9$k:]$K$O!"
\e(B
260 <directive type="section" module="core">Location</directive>
261 \e$B$r;HMQ$7$^$9!#
\e(B</p>
263 <p>
\e$B%U%!%$%k%7%9%F%`>e$N%*%V%8%'%/%H$X$N%"%/%;%9$r@)8B$9$k$?$a$K!"
\e(B
264 <directive type="section" module="core">Location</directive>
265 \e$B$r7h$7$F;HMQ$J$$$h$&$K$7$^$7$g$&!#
\e(B
266 \e$BF10l$N%U%!%$%k%7%9%F%`0LCV$K%^%C%W$7$F$$$k!"%&%'%V6u4V0LCV
\e(B (URL)
267 \e$B$,B??t$"$C$F!"@_Dj$7$?@)8B$r1*2s$5$l$F$7$^$&$+$b$7$l$J$$$+$i$G$9!#
\e(B
268 \e$BNc$($P<!$N@_Dj$r9M$($F$_$^$7$g$&!#
\e(B</p>
271 <Location /dir/><br />
272 Order allow,deny<br />
277 <p><code>http://yoursite.example.com/dir/</code>
278 \e$B$X$N%j%/%(%9%H$G$O>e<j$/F0:n$7$^$9!#$7$+$7BgJ8;z>.J8;z$r6hJL$7$J$$
\e(B
279 \e$B%U%!%$%k%7%9%F%`$r;H$C$F$$$?$i$I$&$J$k$G$7$g$&
\e(B?
280 <code>http://yoursite.example.com/DIR/</code>
281 \e$B$X$N%j%/%(%9%H$G4JC1$K%"%/%;%9@)8B$r1*2s$5$l$F$7$^$$$^$9!#$3$l$KBP$7$F
\e(B
282 <directive type="section" module="core">Directory</directive>
283 \e$B%G%#%l%/%F%#%V$r;HMQ$9$k$H!"$I$N$h$&$K8F$S=P$5$l$?$+$K4X$o$i$:
\e(B
284 \e$B$=$N>l=j$+$iDs6!$5$l$kFbMF$KE,MQ$5$l$^$9!#
\e(B
285 (
\e$BNc30$O%U%!%$%k%7%9%F%`$N%j%s%/$G$9!#%7%s%\%j%C%/%j%s%/$r;H$C$F!"
\e(B
286 \e$BF10l$N%G%#%l%/%H%j$rJ#?t$N%U%!%$%k%7%9%F%`$K@_CV$G$-$^$9!#
\e(B
287 <directive type="section" module="core">Directory</directive>
288 \e$B%G%#%l%/%F%#%V$O%Q%9L>$r%j%;%C%H$9$k$3$H$J$/%7%s%\%j%C%/%j%s%/$r
\e(B
289 \e$BC)$j$^$9!#$G$9$+$i!"9bEY$J%;%-%e%j%F%#$,MW5a$5$l$k>l9g$O!"
\e(B
290 \e$BE,@Z$K
\e(B <directive module="core">Options</directive>
291 \e$B%G%#%l%/%F%#%V$r;HMQ$7$F%7%s%\%j%C%/%j%s%/$rL58z$K$9$k$Y$-$G$9!#
\e(B)</p>
293 <p>
\e$BBgJ8;z>.J8;z$r6hJL$9$k%U%!%$%k%7%9%F%`$r;HMQ$7$F$$$k$+$i>e5-$N$3$H$O
\e(B
294 \e$BL54X78$@$H;W$o$l$k$+$b$7$l$^$;$s$,!"
\e(B
295 \e$BF10l$N%U%!%$%k%7%9%F%`0LCV$KJ#?t$N%&%'%V6u4V0LCV$r%^%C%W$9$kJ}K!$O!"
\e(B
296 \e$BB>$K$$$/$i$G$b$"$k$H$$$&$3$H$r3P$($F$$$F$/$@$5$$!#
\e(B
297 \e$B$G$9$+$i$G$-$k8B$j%U%!%$%k%7%9%F%`%3%s%F%J$r;HMQ$7$F$/$@$5$$!#
\e(B
298 \e$B$7$+$7$J$,$i0l$D$@$1Nc30$,$"$j$^$9!#
\e(B
299 <code><Location /></code>
\e$B%;%/%7%g%s$O$I$s$J
\e(B URL
300 \e$B$K$b4X$o$i$:E,MQ$5$l$k$N$G!"40A4$K0BA4$G$9!#
\e(B</p>
305 <section id="virtualhost"><title>
\e$B%P!<%A%c%k%[%9%H
\e(B</title>
307 <p><directive type="section" module="core">VirtualHost</directive>
308 \e$B%3%s%F%J$OFCDj$N%[%9%H$KE,MQ$9$k%G%#%l%/%F%#%V$r3JG<$7$^$9!#
\e(B
309 \e$B0lBf$N%^%7%s$GJ#?t$N%[%9%H$r0[$J$k@_Dj$GDs6!$7$?$$$H$-$KM-MQ$G$9!#
\e(B
310 \e$B>\:Y$K4X$7$F$O
\e(B<a href="vhosts/">
\e$B%P!<%A%c%k%[%9%H%I%-%e%a%s%H
\e(B</a>
\e$B$r
\e(B
311 \e$B$4Mw2<$5$$!#
\e(B</p>
314 <section id="proxy"><title>
\e$B%W%m%/%7
\e(B</title>
316 <p><directive type="section" module="mod_proxy">Proxy</directive>
317 \e$B$H
\e(B <directive type="section" module="mod_proxy">ProxyMatch</directive>
318 \e$B%3%s%F%J$O!"FCDj$N
\e(B URL
\e$B$K%^%C%A$9$k
\e(B <module>mod_proxy</module>
319 \e$B%W%m%/%7%5!<%P$r7PM3$7$F%"%/%;%9$7$?%5%$%H$KBP$7$F$N$_E,MQ$5$l$k
\e(B
320 \e$B@_Dj%G%#%l%/%F%#%V$r3JG<$7$^$9!#Nc$($P<!$N@_Dj$O!"
\e(B<code>cnn.com</code>
321 \e$B%&%'%V%5%$%H$K%"%/%;%9$9$k$?$a$KMQ$$$i$l$k%W%m%/%7%5!<%P$r
\e(B
322 \e$B@)8B$7$^$9!#
\e(B</p>
325 <Proxy http://cnn.com/*><br />
326 Order allow,deny<br />
332 <section id="whatwhere"><title>
\e$B$I$N%G%#%l%/%F%#%V$,;H$($k$N
\e(B?</title>
334 <p>
\e$B$I$N%?%$%W$N@_Dj%;%/%7%g%s$G$I$N%G%#%l%/%F%#%V$,;HMQ$G$-$k$+$O!"
\e(B
335 \e$B%G%#%l%/%F%#%V$N
\e(B <a href="mod/directive-dict.html#Context">Context</a>
336 \e$B$r8+$F$/$@$5$$!#
\e(B
337 <directive type="section" module="core">Directory</directive>
338 \e$B$G;HMQ2DG=$J$b$N$OA4$F!"F1MM$K
\e(B
339 <directive type="section" module="core">DirectoryMatch</directive>,
340 <directive type="section" module="core">Files</directive>,
341 <directive type="section" module="core">FilesMatch</directive>,
342 <directive type="section" module="core">Location</directive>,
343 <directive type="section" module="core">LocationMatch</directive>,
344 <directive type="section" module="mod_proxy">Proxy</directive>,
345 <directive type="section" module="mod_proxy">ProxyMatch</directive>
346 \e$B%;%/%7%g%s$G;HMQ2DG=$G$9!#$7$+$7$J$,$i4v$D$+Nc30$bB8:_$7$^$9!#
\e(B</p>
349 <li><directive module="core">AllowOverride</directive>
\e$B%G%#%l%/%F%#%V$O
\e(B
350 <directive type="section" module="core">Directory</directive>
351 \e$B%;%/%7%g%s$G$N$_;HMQ2DG=$G$9!#
\e(B</li>
353 <li><code>FollowSymLinks</code>
\e$B$H
\e(B <code>SymLinksIfOwnerMatch</code>
\e$B$N
\e(B
354 <directive module="core">Options</directive>
\e$B$O!"
\e(B
355 <directive type="section" module="core">Directory</directive>
356 \e$B%;%/%7%g%s$+
\e(B <code>.htaccess</code>
\e$B%U%!%$%k$G$N$_;HMQ2DG=$G$9!#
\e(B</li>
358 <li><directive module="core">Options</directive>
\e$B%G%#%l%/%F%#%V$O!"
\e(B
359 <directive type="section" module="core">Files</directive>
360 \e$B$H
\e(B <directive type="section" module="core">FilesMatch</directive>
361 \e$B%;%/%7%g%s$G$O;HMQ$G$-$^$;$s!#
\e(B</li>
365 <section id="mergin"><title>
\e$B%;%/%7%g%s$N%^!<%8J}K!
\e(B</title>
367 <p>
\e$B%^!<%8$N=gHV$O0J2<$N$h$&$K$J$C$F$$$^$9
\e(B:</p>
371 type="section" module="core">Directory</directive> (
\e$B@55,I=8=L5$7
\e(B)
\e$B$H
\e(B
372 <code>.htaccess</code>
\e$B$rF1;~$K
\e(B (<code>.htaccess</code>
\e$B$,5v2D$5$l$F$$$l$P!"$=$l$,
\e(B
373 <directive type="section" module="core">Directory</directive>
\e$B$r>e=q$-$7$^$9
\e(B)
376 <li><directive type="section" module="core">DirectoryMatch</directive>
377 (
\e$B$H
\e(B <code><Directory ~></code></li>
379 <li><directive type="section" module="core">Files</directive>
\e$B$H
\e(B
380 <directive type="section" module="core">FilesMatch</directive>
\e$B$rF1;~$K
\e(B</li>
382 <li><directive type="section" module="core">Location</directive>
\e$B$H
\e(B
383 <directive type="section" module="core">LocationMatch</directive>
\e$B$rF1;~$K
\e(B</li>
386 <p><directive type="section" module="core">Directory</directive>
387 \e$B0J30$O!"$=$l$>$l$N%0%k!<%W$O@_Dj%U%!%$%k$K8=$l$?=gHV$K=hM}$5$l$^$9!#
\e(B
388 <directive type="section" module="core">Directory</directive> (
\e$B>e$N%0%k!<%W
\e(B 1)
389 \e$B$O%G%#%l%/%H%j$,C;$$$b$N$+$iD9$$$b$N$X$H=hM}$5$l$^$9!#$G$9$+$i!"
\e(B
390 \e$BNc$($P
\e(B <code><Directory /var/web/dir1></code>
\e$B$O
\e(B
391 <code><Directory /var/web/dir/subdir></code>
\e$B$NA0$K=hM}$5$l$^$9!#J#?t$N
\e(B
393 type="section" module="core">Directory</directive>
\e$B%;%/%7%g%s$,
\e(B
394 \e$BF1$8%G%#%l%/%H%j$K
\e(B
395 \e$BE,MQ$5$l$k>l9g$O!"@_Dj%U%!%$%kCf$N=gHV$K=>$C$F=hM}$5$l$^$9!#
\e(B
396 <directive module="core">Include</directive>
397 \e$B$K$h$C$FA^F~$5$l$?@_Dj$O
\e(B
\e$BA^F~$7$F$$$k%U%!%$%k$N
\e(B
398 <directive module="core">Include</directive>
399 \e$B%G%#%l%/%F%#%V$N0LCV$K$"$C$?$+$N$h$&$K07$o$l$^$9!#
\e(B</p>
401 <p><directive type="section"
402 module="core">VirtualHost</directive>
\e$B%;%/%7%g%sCf$N%;%/%7%g%s$O
\e(B
403 \e$B%P!<%A%c%k%[%9%H$NDj5A$N30B&$NBP1~$9$k%;%/%7%g%s$N
\e(B
404 <em>
\e$B8e
\e(B</em>
\e$B$KE,MQ$5$l$^$9!#$3$l$K$h$j%P!<%A%c%k%[%9%H$,
\e(B
405 \e$B%a%$%s$N%5!<%P@_Dj$r>e=q$-$G$-$k$h$&$J$j$^$9!#
\e(B</p>
407 <p><module>mod_proxy</module>
\e$B$G%j%/%(%9%H$,=hM}$5$l$k>l9g$O!"
\e(B
408 \e$B=hM}=gHV$N$&$A!"
\e(B<directive module="core"
409 type="section">Directory</directive>
\e$B%3%s%F%J$NItJ,$,
\e(B
410 <directive module="mod_proxy" type="section">Proxy</directive>
411 \e$B%3%s%F%J$K<h$C$FBe$o$i$l$^$9!#
\e(B</p>
413 <p>
\e$B8e$N%;%/%7%g%s$N%G%#%l%/%F%#%V$,A0$N%;%/%7%g%s$N$b$N$r>e=q$-$7$^$9!#
\e(B</p>
416 <note><title>
\e$B5;=Q%a%b
\e(B</title>
417 \e$B<B:]$K$O!"L>A0$rJQ49$9$kCJ3,
\e(B (URL
418 \e$B$r%U%!%$%kL>$K%^%C%W$9$k$?$a$K
\e(B <code>Alias</code>
\e$B$d
\e(B
419 <code>DocumentRoot</code>
\e$B$,;HMQ$5$l$k$H$3$m
\e(B)
\e$B$ND>A0$K
\e(B
420 <directive type="section" module="core">Location</directive>/<directive type="section" module="core">LocationMatch</directive>
421 \e$B$,9T$J$o$l$^$9!#
\e(B
422 \e$B$3$l$i$rE,MQ$7$?7k2L$OJQ49$,=*$o$C$?8e$K40A4$K<N$F$i$l$^$9!#
\e(B
424 <section id="merge-examples"><title>
\e$BNc
\e(B</title>
426 <p>
\e$B<!$O%^!<%8$N=gHV$r<($9$?$a$NWs0UE*$JNc$K$J$C$F$$$^$9!#
\e(B
427 \e$B%j%/%(%9%HA4$F$KE,MQ$5$l$k$H$7$F!"K\Nc$N%G%#%l%/%F%#%V$O
\e(B
428 A > B > C > D > E
\e$B$N=gHV$KE,MQ$5$l$^$9!#
\e(B</p>
431 <Location /><br />
433 </Location><br />
435 <Files f.html><br />
439 <VirtualHost *><br />
440 <Directory /a/b><br />
442 </Directory><br />
443 </VirtualHost><br />
445 <DirectoryMatch "^.*b$"><br />
447 </DirectoryMatch><br />
449 <Directory /a/b><br />
451 </Directory><br />
455 <p>
\e$B$b$C$H6qBNE*$J!"<!$NNc$r9M$($F$_$^$7$g$&!#
\e(B
456 <directive module="core" type="section">Directory</directive>
457 \e$B%;%/%7%g%s$K@_CV$5$l$?%"%/%;%9@)8B$K4X$o$i$:!"
\e(B
458 <directive module="core" type="section">Location</directive>
459 \e$B%;%/%7%g%s$,:G8e$KI>2A$5$l$F!"%5!<%P$X$N%"%/%;%9$O@)8B$5$l$^$;$s!#
\e(B
460 \e$B8@$$49$($l$P!"%^!<%8$N=gHV$O=EMW$G!"Cm0U$7$F;HMQ$7$F$/$@$5$$
\e(B!</p>
463 <Location /><br />
464 Order deny,allow<br />
466 </Location><br />
468 # Woops! This <Directory> section will have no effect<br />
469 <Directory /><br />
470 Order allow,deny<br />
472 Deny from badguy.example.com<br />