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: 420990 -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. 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="env.xml.meta">
25 <title>Apache
\e$B$N4D6-JQ?t
\e(B</title>
28 <p>Apache HTTP
\e$B%5!<%P$O
\e(B<em>
\e$B4D6-JQ?t
\e(B</em>
\e$B$H8F$P$l$k!"L>A0$N$D$$$?
\e(B
29 \e$BJQ?t$K>pJs$r5-21$9$k;EAH$_$rDs6!$7$F$$$^$9!#$3$N>pJs$O%m%0<}=8$d
\e(B
30 \e$B%"%/%;%9@)8f$J$I$N$$$m$$$m$JA`:n$r@)8f$9$k$?$a$K;H$&$3$H$,$G$-$^$9!#
\e(B
31 \e$B$3$l$i$NJQ?t$O
\e(B CGI
\e$B%9%/%j%W%H$J$I$N30It%W%m%0%i%`$HDL?.$9$k$?$a$K$b
\e(B
32 \e$B;H$o$l$^$9!#$3$NJ8=q$O$=$l$i$NJQ?t$NA`:nJ}K!$H;HMQJ}K!$r$$$/$D$+
\e(B
33 \e$B>R2p$7$^$9!#
\e(B</p>
35 <p>
\e$B$3$l$i$NJQ?t$O
\e(B<em>
\e$B4D6-JQ?t
\e(B</em>
\e$B$H8F$P$l$F$$$^$9$,!"%*%Z%l!<%F%#%s%0
\e(B
36 \e$B%7%9%F%`$K$h$C$F@)8f$5$l$F$$$k4D6-JQ?t$HF1$8$G$O$"$j$^$;$s!#
\e(B
37 \e$B<B:]$O!"$3$l$i$NJQ?t$O
\e(B Apache
\e$B$NFbIt9=B$$NCf$K5-21$5$l!"A`:n$5$l$F$$$^$9!#
\e(B
38 \e$B$=$l$i$O!"
\e(BCGI
\e$B$d
\e(B SSI
\e$B%9%/%j%W%H$KEO$5$l$?$H$-$@$1!"<B:]$N
\e(B
39 \e$B%*%Z%l!<%F%#%s%0%7%9%F%`$N4D6-JQ?t$K$J$j$^$9!#%5!<%P<+?H$,
\e(B
40 \e$B<B9T$5$l$F$$$k%*%Z%l!<%F%#%s%0%7%9%F%`$N4D6-$rA`:n$7$?$$>l9g$O!"
\e(B
41 \e$B%*%Z%l!<%F%#%s%0%7%9%F%`$N%7%'%k$,Ds6!$7$F$$$kI8=`$N4D6-JQ?t$N
\e(B
42 \e$BA`:nJ}K!$r;H$o$J$1$l$P$J$j$^$;$s!#
\e(B</p>
45 <section id="setting">
46 <title>
\e$B4D6-JQ?t$N@_Dj
\e(B</title>
49 <module>mod_env</module>
50 <module>mod_rewrite</module>
51 <module>mod_setenvif</module>
52 <module>mod_unique_id</module>
55 <directive module="mod_setenvif">BrowserMatch</directive>
56 <directive module="mod_setenvif">BrowserMatchNoCase</directive>
57 <directive module="mod_env">PassEnv</directive>
58 <directive module="mod_rewrite">RewriteRule</directive>
59 <directive module="mod_env">SetEnv</directive>
60 <directive module="mod_setenvif">SetEnvIf</directive>
61 <directive module="mod_setenvif">SetEnvIfNoCase</directive>
62 <directive module="mod_env">UnsetEnv</directive>
66 <section id="basic-manipulation">
67 <title>
\e$B4pK\E*$J4D6-$NA`:n
\e(B</title>
69 <p>Apache
\e$B$K$*$$$F4D6-JQ?t$r@_Dj$9$k0lHV4pK\E*$JJ}K!$O!"
\e(B
70 \e$BL5>r7o$K4D6-JQ?t$r@_Dj$9$k
\e(B <directive module="mod_env"
71 >SetEnv</directive>
\e$B%G%#%l%/%F%#%V$r;HMQ$9$k$3$H$G$9!#
\e(B
72 <directive module="mod_env">PassEnv</directive>
73 \e$B%G%#%l%/%F%#%V$K$h$j!"
\e(BApache
\e$B$,5/F0$5$l$?%7%'%k$N
\e(B
74 \e$B4D6-JQ?t$rEO$9$3$H$b$G$-$^$9!#
\e(B</p>
77 <section id="conditional">
78 <title>
\e$B%j%/%(%9%HKh$K>r7o$K4p$E$$$F@_Dj$9$k
\e(B</title>
80 <p>
\e$B$h$j=@Fp@-$r9b$a$k$?$a$K!"
\e(Bmod_setenvif
81 \e$B$GDs6!$5$l$F$$$k%G%#%l%/%F%#%V$r;HMQ$9$k$3$H$G!"%j%/%(%9%H$N
\e(B
82 \e$BFC@-$K4p$E$$$F4D6-JQ?t$r@_Dj$9$k$3$H$,$G$-$^$9!#Nc$($P!"FCDj$N%V%i%&%6
\e(B
83 (User-Agent)
\e$B$N%j%/%(%9%H$dFCDj$N
\e(B Referer [
\e$B0U?^E*$JDV$j$G$9
\e(B]
84 (
\e$BLuCm
\e(B:
\e$B@5$7$$DV$j$O
\e(B referrer
\e$B$G$9$,!"
\e(BHTTP
\e$B$N;EMM$G$O
\e(B Referer
85 \e$B$H$J$C$F$$$^$9
\e(B)
\e$B%X%C%@$,8+$D$+$C$?$H$-$N$_JQ?t$r@_Dj$9$k$3$H$,$G$-$^$9!#
\e(B
86 mod_rewrite
\e$B$N
\e(B <directive module="mod_rewrite">RewriteRule</directive>
87 \e$B%G%#%l%/%F%#%V$K$*$$$F4D6-JQ?t$r@_Dj$9$k
\e(B <code>[E=...]</code>
88 \e$B%*%W%7%g%s$r;HMQ$9$k$3$H$G!"
\e(B
89 \e$B$h$j=@Fp$J@_Dj$r9T$J$&$3$H$,$G$-$^$9!#
\e(B</p>
92 <section id="unique-identifiers">
93 <title>
\e$B0l0U$J<1JL;R
\e(B</title>
95 <p>mod_unique_id
\e$B$O!"Hs>o$K8B$i$l$?>r7o$N2<$G
\e(B
96 \e$B!V$9$Y$F!W$N%j%/%(%9%H$K$D$$$F!"0l0U$G$"$k$3$H$,J]>Z$5$l$F$$$kCM$r4D6-JQ?t
\e(B
97 <code>UNIQUE_ID</code>
\e$B$K@_Dj$7$^$9!#
\e(B</p>
100 <section id="standard-cgi">
101 <title>
\e$BI8=`
\e(B CGI
\e$BJQ?t
\e(B</title>
103 <p>Apache
\e$B$N@_Dj%U%!%$%k$G@_Dj$5$l$?4D6-JQ?t$H%7%'%k$+$iEO$5$l$k
\e(B
104 \e$B4D6-JQ?t$K2C$($F!"
\e(BCGI
\e$B%9%/%j%W%H$H
\e(B SSI
\e$B%Z!<%8$K$O
\e(B <a
105 href="http://cgi-spec.golux.com">CGI
\e$B$N;EMM
\e(B</a>
\e$B$GMW5a$5$l$F$$$k!"
\e(B
106 \e$B%j%/%(%9%H$N%a%?>pJs$r;}$C$?4D6-JQ?t$NAH$,Ds6!$5$l$^$9!#
\e(B</p>
109 <section id="caveats">
110 <title>
\e$B$$$/$D$+$NCm0U
\e(B</title>
113 <li>
\e$B4D6-$rA`:n$9$k%G%#%l%/%F%#%V$r;H$C$FI8=`
\e(B CGI
114 \e$BJQ?t$r>e=q$-$7$?$jJQ99$7$?$j$9$k$3$H$O$G$-$^$;$s!#
\e(B</li>
116 <li>CGI
\e$B%9%/%j%W%H$r5/F0$9$k$?$a$K
\e(B <program>suexec</program>
117 \e$B$,;HMQ$5$l$F$$$k>l9g!"
\e(BCGI
\e$B%9%/%j%W%H$,5/F0$9$k$?$a$K!"4D6-JQ?t$O
\e(B<em
118 >
\e$B0BA4
\e(B</em>
\e$B$J4D6-JQ?t$NAH$K@0M}$5$l$^$9!#
\e(B
119 \e$B$3$N0BA4$J4D6-JQ?t$N=89g$O!"%3%s%Q%$%k;~$K
\e(B <code>suexec.c</code>
120 \e$B$GDj5A$5$l$^$9!#
\e(B</li>
122 <li>
\e$B0\?"@-$N$?$a$K!"4D6-JQ?t$NL>A0$O%"%k%U%!%Y%C%H!"
\e(B
123 \e$B?t;z$H%"%s%@!<%9%3%"
\e(B (
\e$BLuCm
\e(B: '_')
\e$B$@$1$+$i@.$j$^$9!#
\e(B
124 \e$B$5$i$K!":G=i$NJ8;z$O?t;z$G$"$C$F$O$$$1$^$;$s!#
\e(B
125 \e$B$3$N@)8B$K9g$o$J$$J8;z$O
\e(B CGI
\e$B%9%/%j%W%H$H
\e(B SSI
126 \e$B%Z!<%8$KEO$5$l$k$H$-$K%"%s%@!<%9%3%"$KCV49$5$l$^$9!#
\e(B</li>
131 <title>
\e$B4D6-JQ?t$N;HMQ
\e(B</title>
135 <module>mod_authz_host</module>
136 <module>mod_cgi</module>
137 <module>mod_ext_filter</module>
138 <module>mod_headers</module>
139 <module>mod_include</module>
140 <module>mod_log_config</module>
141 <module>mod_rewrite</module>
144 <directive module="mod_authz_host">Allow</directive>
145 <directive module="mod_log_config">CustomLog</directive>
146 <directive module="mod_authz_host">Deny</directive>
147 <directive module="mod_ext_filter">ExtFilterDefine</directive>
148 <directive module="mod_headers">Header</directive>
149 <directive module="mod_log_config">LogFormat</directive>
150 <directive module="mod_rewrite">RewriteCond</directive>
151 <directive module="mod_rewrite">RewriteRule</directive>
155 <section id="cgi-scripts">
156 <title>CGI
\e$B%9%/%j%W%H
\e(B</title>
158 <p>
\e$B4D6-JQ?t$N<g$JMxMQK!$N0l$D$O!"
\e(BCGI
\e$B%9%/%j%W%H$K>pJs$rEA$($k$3$H$G$9!#
\e(B
159 \e$B>e$G@bL@$5$l$F$$$k$h$&$K!"
\e(BCGI
\e$B%9%/%j%W%H$KEO$5$l$k4D6-JQ?t$O
\e(B Apache
160 \e$B$N@_Dj$K$h$j@_Dj$5$l$kJQ?t$K2C$($F!"%j%/%(%9%H$NI8=`$N%a%?>pJs$r4^$s$G$$$^$9!#
\e(B
161 \e$B>\:Y$O
\e(B <a href="howto/cgi.html">CGI
\e$B%A%e!<%H%j%"%k
\e(B</a>
162 \e$B$r;2>H$7$F$/$@$5$$!#
\e(B</p>
165 <section id="ssi-pages">
166 <title>SSI
\e$B%Z!<%8
\e(B</title>
168 <p>mod_include
\e$B$N
\e(B <code>INCLUDES</code>
\e$B%U%#%k%?$G=hM}$5$l$k
\e(B
169 server-parsed (SSI)
\e$B%I%-%e%a%s%H$G$O!"
\e(B<code>echo</code>
170 \e$BMWAG$r;HMQ$9$k$H4D6-JQ?t$,=PNO$5$l$^$9!#
\e(B
171 \e$B$^$?!"%Z!<%8$N$"$kItJ,$,%j%/%(%9%H$N@-<A$K1~$8$FJQ99$5$l$k$h$&$K!"
\e(B
172 \e$B4D6-JQ?t$r%U%m!<@)8fMWAG$G;H$&$3$H$,$G$-$^$9!#>\:Y$O
\e(B
173 <a href="howto/ssi.html">SSI
\e$B%A%e!<%H%j%"%k
\e(B</a>
\e$B$r;2>H$7$F$/$@$5$$!#
\e(B</p>
176 <section id="access-control">
177 <title>
\e$B%"%/%;%9@)8f
\e(B</title>
179 <p><code>allow from env=</code>
\e$B%G%#%l%/%F%#%V$H
\e(B <code>deny from env=</code>
180 \e$B%G%#%l%/%F%#%V$r;HMQ$7$F!"%5!<%P$X$N%"%/%;%9$r4D6-JQ?t$NCM$G@)8f$9$k$3$H$,$G$-$^$9!#
\e(B
181 <directive module="mod_setenvif">SetEnvIf</directive>
182 \e$B%G%#%l%/%F%#%V$HAH$_9g$o$;$k$3$H$G!"%/%i%$%"%s%H$NFC@-$K4p$E$$$F
\e(B
183 \e$B%5!<%P$X$N%"%/%;%9@)8f$r=@Fp$K9T$J$&$3$H$,$G$-$k$h$&$K$J$j$^$9!#
\e(B
184 \e$B$?$H$($P!"$3$l$i$N%G%#%l%/%F%#%V$r;HMQ$7$F!"FCDj$N%V%i%&%6
\e(B (User-Agent)
185 \e$B$+$i$N%"%/%;%9$r5qH]$9$k$3$H$,$G$-$^$9!#
\e(B</p>
188 <section id="logging">
189 <title>
\e$B>r7oIU$-%m%05-O?
\e(B</title>
191 <p><directive module="mod_log_config">LogFormat</directive>
192 \e$B%G%#%l%/%F%#%V$N%*%W%7%g%s
\e(B <code>%e</code>
193 \e$B$r;HMQ$9$k$3$H$G!"4D6-JQ?t$r%"%/%;%9%m%0$K5-O?$9$k$3$H$,$G$-$^$9!#$5$i$K!"
\e(B
194 <directive module="mod_log_config">CustomLog</directive>
195 \e$B%G%#%l%/%F%#%V$N>r7oJ,4t<0$r;HMQ$9$k$3$H$G!"
\e(B
196 \e$B4D6-JQ?t$NCM$K$h$C$F%j%/%(%9%H$r%m%0$K5-O?$9$k$+$I$&$+$r7h$a$k$3$H$,$G$-$^$9!#
\e(B
197 <directive module="mod_setenvif">SetEnvIf</directive>
198 \e$B%G%#%l%/%F%#%V$HAH$_9g$o$;$k$3$H$G!"
\e(B
199 \e$B$I$N%j%/%(%9%H$r%m%0$K5-O?$9$k$+$r=@Fp$K@)8f$9$k$3$H$,2DG=$K$J$j$^$9!#$?$H$($P!"
\e(B
200 <code>gif</code>
\e$B$G=*$o$k%U%!%$%kL>$X$N%j%/%(%9%H$O%m%0$K5-O?$7$J$$!"
\e(B
201 \e$B0c$&%5%V%M%C%H$N%/%i%$%"%s%H$+$i$N%j%/%(%9%H$@$1$r%m%0$K5-O?$9$k!"
\e(B
202 \e$B$H$$$&A*Br$,2DG=$G$9!#
\e(B</p>
205 <section id="response-headers">
206 <title>
\e$B>r7oIU$-1~Ez%X%C%@
\e(B</title>
208 <p><directive module="mod_headers">Header</directive>
209 \e$B%G%#%l%/%F%#%V$O4D6-JQ?t$NB8:_$dIT:_$K$h$C$F%/%i%$%"%s%H$X$N1~Ez$KFCDj$N
\e(B
210 HTTP
\e$B%X%C%@$rIU$1$k$+$I$&$+$r7h$a$k$3$H$,$G$-$^$9!#
\e(B
211 \e$B$3$l$K$h$j!"$?$H$($P!"%/%i%$%"%s%H$+$i$N%j%/%(%9%H
\e(B
212 \e$B$K$"$k%X%C%@$,$"$k>l9g$K$N$_FCDj$N1~Ez%X%C%@$rAw$k!"$H$$$&$h$&$J$3$H$,
\e(B
213 \e$B$G$-$^$9!#
\e(B</p>
217 <section id="external-filter">
218 <title>
\e$B30It%U%#%k%?$NE,MQ
\e(B</title>
220 <p><directive module="mod_ext_filter">ExtFilterDefine</directive>
221 \e$B%G%#%l%/%F%#%V$r;HMQ$7$F
\e(B
222 <module>mod_ext_filter</module>
\e$B$G@_Dj$5$l$k30It%U%#%k%?$O!"
\e(B
223 <code>disableenv=</code>
\e$B$H
\e(B <code>enableenv=</code>
224 \e$B%*%W%7%g%s$r;H$C$F!"4D6-JQ?t$K$h$k>r7oIU$-E,MQ$,$G$-$^$9!#
\e(B</p>
227 <section id="url-rewriting">
228 <title>URL
\e$B$N=q$-49$(
\e(B</title>
230 <p><directive module="mod_rewrite">RewriteCond</directive>
231 \e$B%G%#%l%/%F%#%V$G
\e(B<em>
\e$BI>2AJ8;zNs
\e(B</em>
\e$B$H$7$F
\e(B
232 <code>%{ENV:...}</code>
\e$B<0$r;XDj$9$k$3$H$G!"
\e(Bmod_rewrite
233 \e$B$N=q$-49$(%(%s%8%s$,4D6-JQ?t$K4p$$$F>r7oJ,4t$r9T$J$&$3$H$,$G$-$^$9!#
\e(B
234 mod_rewrite
\e$B$,;HMQ2DG=$JJQ?t$G
\e(B <code>ENV:</code>
\e$B$,A0$K$D$$$F$$$J$$JQ?t$O!"
\e(B
235 \e$B<B:]$O4D6-JQ?t$G$O$J$$$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#
\e(B
236 \e$B$=$l$i$OB>$N%b%8%e!<%k$+$i$O;HMQ$G$-$J$$
\e(B mod_rewrite
\e$BMQ$NFCJL$JJQ?t$G$9!#
\e(B
241 <section id="special">
242 <title>
\e$BFCJL$JL\E*$N4D6-JQ?t
\e(B</title>
244 <p>
\e$B8_49@-$NLdBj$r2r7h$9$k$?$a$K!"FCDj$N%/%i%$%"%s%H$HDL?.$7$F$$$k$H$-$O
\e(B
245 Apache
\e$B$NF0:n$rJQ99$G$-$k5!9=$,F3F~$5$l$^$7$?!#$G$-$k$@$1=@Fp$K$9$k$?$a$K!"
\e(B
246 \e$B$3$l$i$N5!9=$O4D6-JQ?t$rDj5A$9$k$3$H$G8F$S=P$5$l$^$9!#IaDL$O!"
\e(B
247 <directive module="mod_setenvif">BrowserMatch</directive>
248 \e$B%G%#%l%/%F%#%V$r;H$$$^$9$,!"$?$H$($P
\e(B <directive module="mod_env"
249 >SetEnv</directive>
\e$B%G%#%l%/%F%#%V$d
\e(B <directive module="mod_env"
250 >PassEnv</directive>
\e$B%G%#%l%/%F%#%V$b;HMQ$9$k$3$H$,$G$-$^$9!#
\e(B</p>
252 <section id="downgrade">
253 <title>downgrade-1.0</title>
255 <p>
\e$B$3$l$r;XDj$9$k$3$H$G!"%j%/%(%9%H$,
\e(B HTTP/1.0
256 \e$B$h$j?7$7$$%W%m%H%3%k$N>l9g$G$b!"
\e(BHTTP/1.0
\e$B$H$7$F07$o$l$^$9!#
\e(B</p>
259 <section id="force-gzip">
260 <title>force-gzip</title>
261 <p><code>DEFLATE</code>
\e$B%U%#%k%?$,;HMQ$9$k$h$&$K@_Dj$5$l$F$$$k$H$-$K!"
\e(B
262 \e$B$3$N4D6-JQ?t$O%V%i%&%6$N
\e(B accept-encoding
\e$B$N@_Dj$rL5;k$7$F>o$K
\e(B
263 \e$B05=L$5$l$?=PNO$rAw$k$h$&$K$7$^$9!#
\e(B</p>
265 <section id="force-no-vary">
266 <title>force-no-vary</title>
268 <p>
\e$B1~Ez%X%C%@$,%/%i%$%"%s%H$KAw$i$l$kA0$K
\e(B <code>Vary</code>
269 \e$B%U%#!<%k%I$r<h$j=|$-$^$9!#
\e(B
270 \e$B%/%i%$%"%s%H$NCf$K$O$3$N%U%#!<%k%I$r@5$7$/2r<a$7$J$$$b$N$,$"$j$^$9!#
\e(B
271 \e$B$3$NJQ?t$r@_Dj$9$k$3$H$G$=$NLdBj$r2sHr$9$k$3$H$,$G$-$^$9!#
\e(B
272 \e$B$3$NJQ?t$r@_Dj$9$k$H!"
\e(B<strong>force-response-1.0</strong>
273 \e$B$,@_Dj$5$l$?$3$H$K$J$j$^$9!#
\e(B</p>
276 <section id="force-response">
277 <title>force-response-1.0</title>
279 <p>
\e$B$3$l$,@_Dj$5$l$F$$$k$H!"
\e(BHTTP/1.0
\e$B%j%/%(%9%H$rH/9T$9$k%/%i%$%"%s%H$KBP$7$F$O
\e(B
280 \e$B>o$K
\e(B HTTP/1.0
\e$B$G1~Ez$9$k$h$&$K$J$j$^$9!#$3$N5!G=$O!"
\e(B
281 \e$B85!9$O
\e(B AOL
\e$B$N%W%m%-%7$NLdBj$N$?$a$K<BAu$5$l$^$7$?!#
\e(BHTTP/1.0
\e$B%/%i%$%"%s%H$NCf$K$O!"
\e(B
282 HTTP/1.1
\e$B$N1~Ez$rJV$5$l$k$H@5$7$/F0:n$7$J$$$b$N$,$"$k$+$b$7$l$^$;$s!#
\e(B
283 \e$B$3$N5!G=$r;HMQ$9$k$3$H$G!"$=$N$h$&$J%/%i%$%"%s%H$H$N4V$N8_49@-LdBj$r2r7h$G$-$^$9!#
\e(B</p>
286 <section id="gzip-only-text-html">
287 <title>gzip-only-text/html</title>
289 <p>
\e$B$3$l$,
\e(B 1
\e$B$K@_Dj$5$l$k$H!"$3$NJQ?t$O
\e(B <code>text/html</code>
290 \e$B0J30$N%3%s%F%s%H%?%$%W$KBP$9$k!"
\e(B<module>mod_deflate</module>
291 \e$BDs6!$N
\e(B <code>DEFLATE</code>
\e$B=PNO%U%#%k%?$rL58z$K$7$^$9!#
\e(B
292 \e$B$^$?!"@EE*$K!"4{$K05=L$5$l$?%U%!%$%k$r;HMQ$7$?$$>l9g!"
\e(B
293 (gzip
\e$B$@$1$G$J$/!"
\e(B"identity"
\e$B$H0[$J$kA4$F$N%(%s%3!<%I$KBP$7$F
\e(B)
294 <module>mod_negotiation</module>
\e$B$bJQ?t$rI>2A$7$^$9!#
\e(B</p>
297 <section id="no-gzip"><title>no-gzip</title>
298 <p>
\e$B%;%C%H$5$l$k$H!"
\e(B<module>mod_deflate</module>
\e$B$N
\e(B
299 <code>DEFLATE</code>
\e$B%U%#%k%?$,%*%U$K$J$j$^$9!#
\e(B
300 \e$B$=$7$F
\e(B <module>mod_negotiation</module>
301 \e$B$O%(%s%3!<%I$5$l$?%j%=!<%9$rAw$i$J$$$h$&$K$7$^$9!#
\e(B</p>
304 <section id="nokeepalive">
305 <title>nokeepalive</title>
307 <p>
\e$B$3$l$,@_Dj$5$l$F$$$k>l9g$O!"
\e(B<directive module="core"
308 >KeepAlive</directive>
\e$B$r;HMQ$7$J$$$h$&$K$7$^$9!#
\e(B</p>
310 <section id="prefer-language"><title>prefer-language</title>
312 <p><module>mod_negotiation</module>
\e$B$N5sF0$K1F6A$rM?$($^$9!#
\e(B
313 (<code>en</code>, <code>ja</code>, <code>x-klingon</code>
\e$B$H$$$C$?
\e(B)
314 \e$B8@8l%?%0$,3JG<$5$l$F$$$l$P!"$=$N8@8l$N
\e(B variant
\e$B$rAw?.$7$h$&$H$7$^$9!#
\e(B
315 \e$B$=$N$h$&$J
\e(B variant
\e$B$,$J$$>l9g$O!"
\e(B
316 \e$BDL>o$N
\e(B<a href="content-negotiation.html">
\e$B%M%4%7%(!<%7%g%s
\e(B</a>
\e$B=hM}$,
\e(B
317 \e$BE,MQ$5$l$^$9!#
\e(B</p>
322 <section id="redirect-carefully">
323 <title>redirect-carefully</title>
325 <p>
\e$B$3$l$O%/%i%$%"%s%H$X$N%j%@%$%l%/%H$NAw?.$r%5!<%P$,$h$jCm0U?<$/
\e(B
326 \e$B9T$J$&$h$&$K$7$^$9!#
\e(B
327 \e$B$3$l$ODL>o!"%j%@%$%l%/%H$K:]$7$F%/%i%$%"%s%H$K
\e(B
328 \e$BLdBj$,$"$k$3$H$,J,$+$C$F$$$k>l9g$K;H$o$l$^$9!#$3$N5!G=$O85!9$O
\e(B
329 \e$B%^%$%/%m%=%U%H$N%&%'%V%U%)%k%@$N%=%U%H$,
\e(B DAV
330 \e$B%a%=%C%I$K$h$k%G%#%l%/%H%j$N%j%=!<%9$X$N%j%@%$%l%/%H$N07$$$K
\e(B
331 \e$BLdBj$,$j!"$=$l$r2sHr$9$k$?$a$K<BAu$5$l$^$7$?!#
\e(B</p>
335 <section id="suppress-error-charset">
336 <title>suppress-error-charset</title>
338 <p><em>Apache 2.2
\e$B0J9_$GMxMQ2DG=
\e(B</em></p>
340 <p>
\e$B%/%i%$%"%s%H$N%j%/%(%9%H$KBP$9$k1~Ez$H$7$F%j%@%$%l%/%H$rAw?.$9$k:]!"
\e(B
341 \e$B%l%9%]%s%9$K$O%j%@%$%l%/%H$,<+F0E*$K9T$J$($J$$
\e(B (
\e$B9T$J$o$l$J$$
\e(B)
342 \e$B>l9g$KI=<($9$k%F%-%9%H$,4^$^$l$^$9!#
\e(B
343 \e$BDL>o!"$3$N%F%-%9%H$K9gCW$7$?%-%c%i%/%?%;%C%H!"
\e(BISO-8859-1
344 \e$B$G%i%Y%kIU$1$r$7$^$9!#
\e(B</p>
345 <p>
\e$B$7$+$7!"%j%@%$%l%/%H@h$,JL$NJ8;z%;%C%H$r;H$C$F$$$k>l9g!"
\e(B
346 \e$B$"$kLdBj$N$"$k%V%i%&%6$N%P!<%8%g%s$G$O!"
\e(B
347 \e$B%j%@%$%l%/%H@h$N<B:]$NJ8;z%;%C%H$NBe$o$j$K!"
\e(B
348 \e$B%j%@%$%l%/%H85$NJ8;z%;%C%H$r;H$C$F$7$^$&$3$H$,$"$j$^$9!#
\e(B
349 \e$B$=$N7k2L!"Nc$($PJQ$JIA2h$,9T$J$o$l$?$j$7$F!"FI$a$J$/$J$C$?$j$7$^$9!#
\e(B</p>
350 <p>
\e$B$3$N4D6-JQ?t$r@_Dj$9$k$3$H$G!"%j%@%$%l%/%7%g%s%F%-%9%H$KBP$9$k
\e(B
351 \e$B%-%c%i%/%?%;%C%H$N;XDj$r=|5n$7$^$9$N$G!"$=$l$iLdBj$N$"$k%V%i%&%6$G$b
\e(B
352 \e$B%j%@%$%l%/%H@h$NJ8;z%;%C%H$r@5$7$/;H$&$h$&$K$G$-$^$9!#
\e(B</p>
356 <section id="proxy"><title>force-proxy-request-1.0, proxy-nokeepalive, proxy-sendchunked, proxy-sendcl</title>
358 <p>
\e$B$3$l$i$N;X<(;R$O
\e(B <module>mod_proxy</module>
\e$B$N5sF0$rJQ99$7$^$9!#
\e(B
359 \e$B>\:Y$O
\e(B <module>mod_proxy</module>
\e$B$N%I%-%e%a%s%H$r$4;2>H$/$@$5$$!#
\e(B</p>
364 <section id="examples">
365 <title>
\e$BNc
\e(B</title>
367 <section id="misbehaving">
368 <title>
\e$B$*$+$7$J5sF0$r$9$k%/%i%$%"%s%H$KBP$7$F%W%m%H%3%k$NF0:n$rJQ99$9$k
\e(B</title>
370 <p>
\e$B%/%i%$%"%s%H$K4X$9$k4{CN$NLdBj$KBP=h$9$k$?$a$K!"0J2<$N9T$r
\e(B
371 httpd.conf
\e$B$KF~$l$k$3$H$r?d>)$7$F$$$^$9!#
\e(B</p>
372 <p>
\e$B8E$$%P!<%8%g%s$N
\e(B Apache
\e$B$G$O!"%/%i%$%"%s%H$NLdBj$KBP1~$9$k$?$a$K
\e(B
373 httpd.conf
\e$B$K<!$N9T$r2C$($k$h$&?d>)$5$l$F$$$^$7$?$,!"
\e(B
374 \e$B:#$H$J$C$F$O!"LdBj$H$7$F$$$?%/%i%$%"%s%H$O<B:]$K$O8+$+$1$k$3$H$O
\e(B
375 \e$B$J$/$J$C$F$-$?$N$G!"$3$N@_Dj$O$b$O$dI,MW$J$$$+$b$7$l$^$;$s!#
\e(B</p>
378 # The following directives modify normal HTTP response behavior.
379 # The first directive disables keepalive for Netscape 2.x and browsers that
380 # spoof it. There are known problems with these browser implementations.
381 # The second directive is for Microsoft Internet Explorer 4.0b2
382 # which has a broken HTTP/1.1 implementation and does not properly
383 # support keepalive when it is used on 301 or 302 (redirect) responses.
385 BrowserMatch "Mozilla/2" nokeepalive
386 BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
389 # The following directive disables HTTP/1.1 responses to browsers which
390 # are in violation of the HTTP/1.0 spec by not being able to grok a
391 # basic 1.1 response.
393 BrowserMatch "RealPlayer 4\.0" force-response-1.0
394 BrowserMatch "Java/1\.0" force-response-1.0
395 BrowserMatch "JDK/1\.0" force-response-1.0</pre></example>
398 <section id="no-img-log">
399 <title>
\e$B2hA|$X$N%j%/%(%9%H$r%"%/%;%9%m%0$K5-O?$7$J$$
\e(B</title>
401 <p>
\e$B$3$NNc$G$O!"2hA|$X$N%j%/%(%9%H$,%"%/%;%9%m%0$K8=$l$J$$$h$&$K$7$^$9!#
\e(B
402 \e$B$3$l$rJQ99$9$k$3$H$G!"FCDj$N%G%#%l%/%H%j$N%m%0<}=8$r$d$a$?$j!"
\e(B
403 \e$BFCDj$N%[%9%H$+$i$N%j%/%(%9%H$N%m%0<}=8$r$d$a$?$j$9$k$3$H$,4JC1$K$G$-$^$9!#
\e(B
406 SetEnvIf Request_URI \.gif image-request
407 SetEnvIf Request_URI \.jpg image-request
408 SetEnvIf Request_URI \.png image-request
409 CustomLog logs/access_log common env=!image-request</pre></example>
412 <section id="image-theft">
413 <title>
\e$B!V2hA|$NEpMQ!W$rKI$0
\e(B</title>
415 <p>
\e$B$3$NNc$O!"JL$N%5!<%P$K$$$k?M$,!"$"$J$?$N%5!<%P$K$"$k2hA|$r
\e(B
416 inline
\e$B2hA|$H$7$F;HMQ$9$k$3$H$rKI$.$^$9!#
\e(B
417 \e$B$3$l$O?d>)$5$l$F$$$k@_Dj$G$O$"$j$^$;$s$,!"$"$k8BDj$5$l$?>u67$G$OM-8z$G$9!#
\e(B
418 \e$B$3$3$G$O!"$9$Y$F$N2hA|$O
\e(B <code>/web/images</code>
419 \e$B$H$$$&%G%#%l%/%H%j$K$"$k$H2>Dj$7$^$9!#
\e(B</p>
421 SetEnvIf Referer "^http://www\.example\.com/" local_referal
422 # Allow browsers that do not send Referer info
423 SetEnvIf Referer "^$" local_referal
424 <Directory /web/images>
427 Allow from env=local_referal
428 </Directory></pre></example>
430 <p>
\e$B$3$N<jK!$K4X$9$k>\$7$$>pJs$O
\e(B ApacheToday
\e$B$N%A%e!<%H%j%"%k!V
\e(B<a
431 href="http://apachetoday.com/news_story.php3?ltsn=2000-06-14-002-01-ps"
432 >Keeping Your Images from Adorning Other Sites</a>
433 \e$B!W$r;2>H$7$F$/$@$5$$!#
\e(B</p>