home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 April
/
PCWorld_2002-04_cd.bin
/
Komunik
/
apache
/
apache_1.3.23-win32-x86-no_src.msi
/
Data.Cab
/
F164996_env.html.ja.jis
< prev
next >
Wrap
Extensible Markup Language
|
2002-01-24
|
14KB
|
330 lines
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<title>Apache $B$N4D6-JQ?t(B</title>
</head>
<!-- English revision: 1.16 -->
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<body bgcolor="#ffffff" text="#000000" link="#0000ff"
vlink="#000080" alink="#ff0000">
<div align="CENTER">
<img src="images/sub.gif" alt="[APACHE DOCUMENTATION]" />
<h3>Apache HTTP Server</h3>
</div>
<h1 align="center">Apache $B$K$*$1$k4D6-JQ?t(B</h1>
<p>$BB?$/$N%*%Z%l!<%F%#%s%0%7%9%F%`$O!"(B<em>$B4D6-JQ?t(B</em>$B$H8F$P$l$k!"(B
$B>pJs$NJ]B8!"EAC#$N$?$a$N5!G=$rDs6!$7$F$$$^$9!#F0:nJ}K!$r@)8f$7$?$j!"(B
CGI $B%9%/%j%W%H$N$h$&$JB>$N%W%m%0%i%`$HDL?.$7$?$j$9$k$?$a$K!"(BApache
$B$OB?$/$NJ}K!$G4D6-JQ?t$r;H$$$^$9!#$3$NJ8=q$G$O!"(BApache
$B$K$*$1$k4D6-JQ?t$N;HMQK!$r$$$/$D$+@bL@$7$^$9!#(B
</p>
<ul>
<li><a href="#setting">$B4D6-JQ?t$N@_Dj(B</a></li>
<li><a href="#using">$B4D6-JQ?t$N;HMQ(B</a></li>
<li><a href="#special">$BFCJL$JL\E*$N4D6-JQ?t(B</a></li>
<li><a href="#examples">$BNc(B</a></li>
</ul>
<hr />
<h2><a id="setting" name="setting">$B4D6-JQ?t$N@_Dj(B</a></h2>
<table border="1">
<tr>
<td valign="top"><strong>$B4XO"%b%8%e!<%k(B</strong><br />
<br />
<a href="mod/mod_env.html">mod_env</a><br />
<a href="mod/mod_rewrite.html">mod_rewrite</a><br />
<a href="mod/mod_setenvif.html">mod_setenvif</a><br />
<a href="mod/mod_unique_id.html">mod_unique_id</a><br />
</td>
<td valign="top"><strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br />
<br />
<a
href="mod/mod_setenvif.html#BrowserMatch">BrowserMatch</a><br />
<a
href="mod/mod_setenvif.html#BrowserMatchNoCase">BrowserMatchNoCase</a><br />
<a href="mod/mod_env.html#passenv">PassEnv</a><br />
<a
href="mod/mod_rewrite.html#RewriteRule">RewriteRule</a><br />
<a href="mod/mod_env.html#setenv">SetEnv</a><br />
<a
href="mod/mod_setenvif.html#SetEnvIf">SetEnvIf</a><br />
<a
href="mod/mod_setenvif.html#SetEnvIfNoCase">SetEnvIfNoCase</a><br />
<a href="mod/mod_env.html#unsetenv">UnsetEnv</a><br />
</td>
</tr>
</table>
<h3>$B4pK\E*$J4D6-$NA`:n(B</h3>
<p>Apache $B$K$*$$$F4D6-JQ?t$r@_Dj$9$k0lHV4pK\E*$JJ}K!$O!"(B
$BL5>r7o$K4D6-JQ?t$r@_Dj$9$k(B <code>SetEnv</code>
$B%G%#%l%/%F%#%V$r;HMQ$9$k$3$H$G$9!#(B <code>PassEnv</code>
$B%G%#%l%/%F%#%V$K$h$j!"(BApache $B$,5/F0$5$l$?%7%'%k$N(B
$B4D6-JQ?t$rEO$9$3$H$b$G$-$^$9!#(B</p>
<h3>$B%j%/%(%9%HKh$K>r7o$K4p$E$$$F@_Dj$9$k(B</h3>
<p>$B$h$j=@Fp@-$r9b$a$k$?$a$K!"(Bmod_setenvif
$B$GDs6!$5$l$F$$$k%G%#%l%/%F%#%V$r;HMQ$9$k$3$H$G!"%j%/%(%9%H$N(B
$BFC@-$K4p$E$$$F4D6-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O$G$-$^$;$s!#(B</li>
<li>CGI $B%9%/%j%W%H$r5/F0$9$k$?$a$K(B <a href="suexec.html">suexec</a>
$B$,;HMQ$5$l$F$$$k>l9g!"(BCGI $B%9%/%j%W%H$,5/F0$9$k$?$a$K!"4D6-JQ?t$O(B<em
>$B0BA4(B</em>$B$J4D6-JQ?t$NAH$K@0M}$5$l$^$9!#(B
$B$3$N0BA4$J4D6-JQ?t$N=89g$O!"%3%s%Q%$%k;~$K(B <code>suexec.c</code>
$B$GDj5A$5$l$^$9!#(B</li>
<li>$B0\?"@-$N$?$a$K!"4D6-JQ?t$NL>A0$O%"%k%U%!%Y%C%H!"(B
$B?t;z$H%"%s%@!<%9%3%"(B ($BLuCm(B: '_') $B$@$1$+$i@.$j$^$9!#(B
$B$5$i$K!":G=i$NJ8;z$O?t;z$G$"$C$F$O$$$1$^$;$s!#(B
$B$3$N@)8B$K9g$o$J$$J8;z$O(B CGI $B%9%/%j%W%H$H(B SSI
$B%Z!<%8$KEO$5$l$k$H$-$K%"%s%@!<%9%3%"$KCV49$5$l$^$9!#(B
</li>
</ul>
<hr />
<h2><a id="using" name="using">$B4D6-JQ?t$N;HMQ(B</a></h2>
<table border="1">
<tr>
<td valign="top"><strong>$B4XO"%b%8%e!<%k(B</strong><br />
<br />
<a href="mod/mod_access.html">mod_access</a><br />
<a href="mod/mod_cgi.html">mod_cgi</a><br />
<a href="mod/mod_include.html">mod_include</a><br />
<a href="mod/mod_log_config.html">mod_log_config</a><br />
<a href="mod/mod_rewrite.html">mod_rewrite</a><br />
</td>
<td valign="top"><strong>$B4XO"%G%#%l%/%F%#%V(B</strong><br />
<br />
<a href="mod/mod_access.html#allow">Allow</a><br />
<a
href="mod/mod_log_config.html#customlog">CustomLog</a><br />
<a href="mod/mod_access.html#deny">Deny</a><br />
<a
href="mod/mod_log_config.html#logformat">LogFormat</a><br />
<a
href="mod/mod_rewrite.html#RewriteCond">RewriteCond</a><br />
<a
href="mod/mod_rewrite.html#RewriteRule">RewriteRule</a><br />
</td>
</tr>
</table>
<h3>CGI $B%9%/%j%W%H(B</h3>
<p>$B4D6-JQ?t$N<g$JMxMQK!$N0l$D$O!"(BCGI $B%9%/%j%W%H$K>pJs$rEA$($k$3$H$G$9!#(B
$B>e$G@bL@$5$l$F$$$k$h$&$K!"(BCGI $B%9%/%j%W%H$KEO$5$l$k4D6-JQ?t$O(B Apache
$B$N@_Dj$K$h$j@_Dj$5$l$kJQ?t$K2C$($F!"%j%/%(%9%H$NI8=`$N%a%?>pJs$r4^$s$G$$$^$9!#(B
$B>\:Y$O(B <a href="howto/cgi.html">CGI $B%A%e!<%H%j%"%k(B</a> $B$r;2>H$7$F$/$@$5$$!#(B
</p>
<h3>SSI $B%Z!<%8(B</h3>
<p>
mod_include $B$N(B <code>server-parsed</code> $B%O%s%I%i$G=hM}$5$l$k(B
server-parsed (SSI) $B%I%-%e%a%s%H$G$O!"(B<code>echo</code>
$BMWAG$r;HMQ$9$k$H4D6-JQ?t$,=PNO$5$l$^$9!#(B
$B$^$?!"%Z!<%8$N$"$kItJ,$,%j%/%(%9%H$N@-<A$K1~$8$FJQ99$5$l$k$h$&$K!"(B
$B4D6-JQ?t$r%U%m!<@)8fMWAG$G;H$&$3$H$,$G$-$^$9!#>\:Y$O(B
<a href="howto/ssi.html">SSI $B%A%e!<%H%j%"%k(B</a> $B$r;2>H$7$F$/$@$5$$!#(B
</p>
<h3>$B%"%/%;%9@)8f(B</h3>
<p><code>allow from env=</code> $B%G%#%l%/%F%#%V$H(B <code>deny from env=</code>
$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!#(B
<code>SetEnvIf</code> $B%G%#%l%/%F%#%V$HAH$_9g$o$;$k$3$H$G!"%/%i%$%"%s%H$NFC@-$K4p$E$$$F(B
$B%5!<%P$X$N%"%/%;%9@)8f$r=@Fp$K9T$J$&$3$H$,$G$-$k$h$&$K$J$j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$O4D6-JQ?t$G$O$J$$$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B
$B$=$l$i$OB>$N%b%8%e!<%k$+$i$O;HMQ$G$-$J$$(B mod_rewrite $BMQ$NFCJL$JJQ?t$G$9!#(B
</p>
<hr />
<h2><a id="special" name="special">$BFCJL$JL\E*$N4D6-JQ?t(B</a></h2>
<p>
$B8_49@-$NLdBj$r2r7h$9$k$?$a$K!"FCDj$N%/%i%$%"%s%H$HDL?.$7$F$$$k$H$-$O(B
Apache $B$NF0:n$rJQ99$G$-$k5!9=$,F3F~$5$l$^$7$?!#$G$-$k$@$1=@Fp$K$9$k$?$a$K!"(B
$B$3$l$i$N5!9=$O4D6-JQ?t$rDj5A$9$k$3$H$G8F$S=P$5$l$^$9!#IaDL$O!"(B
<a href="mod/mod_setenvif.html#browsermatch">BrowserMatch</a>
$B%G%#%l%/%F%#%V$r;H$$$^$9$,!"Nc$($P(B <a href="mod/mod_env.html#setenv"
>SetEnv</a> $B%G%#%l%/%F%#%V$d(B <a href="mod/mod_env.html#passenv"
>PassEnv</a> $B%G%#%l%/%F%#%V$b;HMQ$9$k$3$H$,$G$-$^$9!#(B
</p>
<h2>downgrade-1.0</h2>
<p>$B$3$l$r;XDj$9$k$3$H$G!"%j%/%(%9%H$,(B HTTP/1.0
$B$h$j?7$7$$%W%m%H%3%k$N>l9g$G$b!"(BHTTP/1.0 $B$H$7$F07$o$l$^$9!#(B</p>
<h2>force-no-vary</h2>
<p>$B1~Ez%X%C%@$,%/%i%$%"%s%H$KAw$i$l$kA0$K(B <code>Vary</code>
$B%U%#!<%k%I$r<h$j=|$-$^$9!#(B
$B%/%i%$%"%s%H$NCf$K$O$3$N%U%#!<%k%I$r@5$7$/2r<a$7$J$$$b$N$,$"$j$^$9(B
(<a href="misc/known_client_problems.html">$B%/%i%$%"%s%H$N4{CN$NLdBj(B</a>
$B$N%Z!<%8$r;2>H$7$F$/$@$5$$(B)$B!#$3$NJQ?t$r@_Dj$9$k$3$H$G$=$NLdBj$r2sHr(B
$B$9$k$3$H$,$G$-$^$9!#$3$NJQ?t$r@_Dj$9$k$H!"(B<strong>force-response-1.0</strong>
$B$,@_Dj$5$l$?$3$H$K$J$j$^$9!#(B</p>
<h2>force-response-1.0</h2>
<p>$B$3$l$,@_Dj$5$l$F$$$k$H!">o$K(B HTTP/1.0 $B$G$N1~Ez$K$J$j$^$9!#$3$N5!G=$O!"(B
$B85!9$O(B AOL $B$N%W%m%-%7$NLdBj$N$?$a$K<BAu$5$l$^$7$?!#%/%i%$%"%s%H$NCf$K$O!"(B
HTTP/1.1 $B$N1~Ez$rJV$5$l$k$H@5$7$/F0:n$7$J$$$b$N$,$"$k$+$b$7$l$^$;$s!#(B
$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!#(B</p>
<h2>nokeepalive</h2>
<p>$B$3$l$,@_Dj$5$l$F$$$k>l9g$O!"(B<a href="mod/core.html#keepalive"
>KeepAlive</a> $B$r;HMQ$7$J$$$h$&$K$7$^$9!#(B</p>
<hr />
<h2><a id="examples" name="examples">$BNc(B</a></h2>
<h3>$B$*$+$7$J5sF0$r$9$k%/%i%$%"%s%H$KBP$7$F%W%m%H%3%k$NF0:n$rJQ99$9$k(B</h3>
<p>$B%/%i%$%"%s%H$K4X$9$k4{CN$NLdBj$KBP=h$9$k$?$a$K!"0J2<$N9T$r(B
httpd.conf $B$KF~$l$k$3$H$r?d>)$7$F$$$^$9!#(B</p>
<pre>
#
# The following directives modify normal HTTP response behavior.
# The first directive disables keepalive for Netscape 2.x and browsers that
# spoof it. There are known problems with these browser implementations.
# The second directive is for Microsoft Internet Explorer 4.0b2
# which has a broken HTTP/1.1 implementation and does not properly
# support keepalive when it is used on 301 or 302 (redirect) responses.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
#
# The following directive disables HTTP/1.1 responses to browsers which
# are in violation of the HTTP/1.0 spec by not being able to grok a
# basic 1.1 response.
#
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</pre>
<h3>$B2hA|$X$N%j%/%(%9%H$r%"%/%;%9%m%0$K5-O?$7$J$$(B</h3>
<p>$B$3$NNc$G$O!"2hA|$X$N%j%/%(%9%H$,%"%/%;%9%m%0$K8=$l$J$$$h$&$K$7$^$9!#(B
$B$3$l$rJQ99$9$k$3$H$G!"FCDj$N%G%#%l%/%H%j$N%m%0<}=8$r$d$a$?$j!"(B
$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!#(B
</p>
<pre>
SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
CustomLog logs/access_log env=!image-request
</pre>
<h3>$B!V2hA|$NEpMQ!W$rKI$0(B</h3>
<p>$B$3$NNc$O!"JL$N%5!<%P$K$$$k?M$,!"$"$J$?$N%5!<%P$K$"$k2hA|$r(B
inline $B2hA|$H$7$F;HMQ$9$k$3$H$rKI$.$^$9!#(B
$B$3$l$O?d>)$5$l$F$$$k@_Dj$G$O$"$j$^$;$s$,!"$"$k8BDj$5$l$?>u67$G$OM-8z$G$9!#(B
$B$3$3$G$O!"$9$Y$F$N2hA|$O(B /web/images $B$H$$$&%G%#%l%/%H%j$K$"$k$H2>Dj$7$^$9!#(B
</p>
<pre>
SetEnvIf Referer "^http://www.example.com/" local_referal
# Allow browsers that do not send Referer info
SetEnvIf Referer "^$" local_referal
<Directory /web/images>
Order Deny,Allow
Deny from all
Allow from env=local_referal
</Directory>
</pre>
<p><em>$BCm(B:</em> 'referer' $B$H(B 'referal' $B$NDV$j$O0U?^E*$J$b$N$G$9(B ($BLuCm(B:
$B@5$7$$DV$j$O(B referrer $B$H(B referral)$B!#(B</p>
<p>$B$3$N<jK!$K4X$9$k>\$7$$>pJs$O(B ApacheToday $B$N%A%e!<%H%j%"%k(B "<a
href="http://apachetoday.com/news_story.php3?ltsn=2000-06-14-002-01-ps"
>Keeping Your Images from Adorning Other Sites</a>"
$B$r;2>H$7$F$/$@$5$$!#(B</p>
<hr />
<h3 align="CENTER">Apache HTTP Server</h3>
<a href="./"><img src="images/index.gif" alt="Index" /></a>
</body>
</html>