home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / CMCD1104.ISO / Software / Complet / Apache / apache_2.0.52-win32-x86-no_ssl.msi / Data.Cab / F278356_mod_setenvif.xml.ja < prev    next >
Extensible Markup Language  |  2004-09-06  |  11KB  |  265 lines

  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: 1.7.2.6 -->
  5.  
  6. <!--
  7.  Copyright 2002-2004 The Apache Software Foundation
  8.  
  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
  12.  
  13.      http://www.apache.org/licenses/LICENSE-2.0
  14.  
  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.
  20. -->
  21.  
  22. <modulesynopsis metafile="mod_setenvif.xml.meta">
  23.  
  24. <name>mod_setenvif</name>
  25. <description>$B%j%/%(%9%H$NFCD'$K4p$E$$$?4D6-JQ?t$N@_Dj$r2DG=$K$9$k(B</description>
  26. <status>Base</status>
  27. <sourcefile>mod_setenvif.c</sourcefile>
  28. <identifier>setenvif_module</identifier>
  29. <summary>
  30.  
  31.     <p><module>mod_setenvif</module>
  32.     $B%b%8%e!<%k$O!"%j%/%(%9%H$N$"$kB&LL$,;XDj$5$l$?@55,I=8=(B
  33.     $B$K9g$&$+$I$&$+$K$h$C$F4D6-JQ?t$r@_Dj$9$k5!G=$rDs6!$7$^$9!#(B
  34.     $B$3$l$i$N4D6-JQ?t$r;HMQ$7$F!"%5!<%P$NB>$NItJ,$,$I$N$h$&$JF0:n$r$9$k$+$r(B
  35.     $B7hDj$9$k$3$H$,$G$-$^$9!#(B</p>
  36.  
  37.     <p>$B$3$N%b%8%e!<%k$,Ds6!$9$k%G%#%l%/%F%#%V$O!"(B
  38.     $B@_Dj%U%!%$%k$K8=$l$k=gHV$KE,MQ$5$l$^$9!#(B
  39.     $B$=$l$r;H$C$F!"<!$NNc$N$h$&$K$h$jJ#;($J@_Dj$r$9$k$3$H$,$G$-$^$9!#(B
  40.     $B$3$l$O!"%V%i%&%6$,(B mozilla $B$G$O$"$k$1$l$I!"(BMSIE $B$G$O$J$$$H$-$K(B
  41.     <code>netscape</code> $B$r@_Dj$7$^$9!#(B</p>
  42. <example>
  43.   BrowserMatch ^Mozilla netscape<br />
  44.   BrowserMatch MSIE !netscape<br />
  45. </example>
  46. </summary>
  47.  
  48. <seealso><a href="../env.html">Apache $B$N4D6-JQ?t(B</a></seealso>
  49.  
  50. <directivesynopsis>
  51. <name>BrowserMatch</name>
  52. <description>HTTP User-Agent $B$K4p$E$$$F4D6-JQ?t$r@_Dj$9$k(B
  53. </description>
  54. <syntax>BrowserMatch <em>regex [!]env-variable</em>[=<em>value</em>]
  55. [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
  56. <contextlist><context>server config</context>
  57. <context>virtual host</context><context>directory</context>
  58. <context>.htaccess</context></contextlist>
  59. <override>FileInfo</override>
  60.  
  61. <usage>
  62.   <p><directive>BrowserMatch</directive> $B$O(B
  63.   <directive module="mod_setenvif">SetEnvIf</directive> $B%G%#%l%/%F%#%V$N(B
  64.   $BFCNc$G!"(B<code>User-Agent</code> HTTP $B%j%/%(%9%H%X%C%@$K4p$E$$$F(B
  65.   $B4D6-JQ?t$r@_Dj$7$^$9!#0J2<$N(B 2 $B9T$N8z2L$OF1$8$K$J$j$^$9(B:</p>
  66.  
  67. <example>
  68.    BrowserMatchNoCase Robot is_a_robot<br /> 
  69.    SetEnvIfNoCase User-Agent Robot is_a_robot<br /> 
  70. </example>
  71.  
  72.     <p>$B$=$NB>$NNc(B:</p>
  73. <example>
  74.     BrowserMatch ^Mozilla forms jpeg=yes browser=netscape<br />
  75.     BrowserMatch "^Mozilla/[2-3]" tables agif frames javascript<br />
  76.     BrowserMatch MSIE !javascript<br />
  77. </example>
  78. </usage>
  79. </directivesynopsis>
  80.  
  81. <directivesynopsis>
  82. <name>BrowserMatchNoCase</name>
  83. <description>HTTP User-Agent $B$K4p$E$$$FBgJ8;z>.J8;z$r6hJL$;$:$K(B
  84. $B4D6-JQ?t$r@_Dj$9$k(B</description>
  85. <syntax>BrowserMatchNoCase  <em>regex [!]env-variable</em>[=<em>value</em>]
  86.     [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
  87. <contextlist><context>server config</context>
  88. <context>virtual host</context><context>directory</context>
  89. <context>.htaccess</context></contextlist>
  90. <override>FileInfo</override>
  91. <compatibility>Apache 1.2 $B0J9_(B
  92.     (Apache 1.2 $B$G$O$3$N%G%#%l%/%F%#%V$O$b$&MQ$$$i$l$F$$$J$$(B
  93.     mod_browser $B%b%8%e!<%k$K$"$j$^$7$?(B)</compatibility>
  94.  
  95. <usage>
  96.  
  97.     <p><directive>BrowserMatchNoCase</directive> $B%G%#%l%/%F%#%V$O(B
  98.     $B0UL#E*$K$O(B <directive
  99.     module="mod_setenvif">BrowserMatch</directive> $B%G%#%l%/%F%#%V$H(B
  100.     $BF1$8$G$9!#$?$@$7!"$3$N%G%#%l%/%F%#%V$OBgJ8;z>.J8;z$r6hJL$7$J$$(B
  101.     $B%^%C%A%s%0$r9T$J$$$^$9!#Nc$($P(B:</p>
  102.  
  103. <example>
  104.     BrowserMatchNoCase mac platform=macintosh<br />
  105.     BrowserMatchNoCase win platform=windows<br />
  106. </example>
  107.  
  108.     <p><directive>BrowserMatch</directive> $B%G%#%l%/%F%#%V$H(B
  109.     <directive>BrowserMatchNoCase</directive> $B%G%#%l%/%F%#%V$O(B
  110.     <directive module="mod_setenvif">SetEnvIf</directive> $B%G%#%l%/%F%#%V$H(B
  111.     <directive
  112.     module="mod_setenvif">SetEnvIfNoCase</directive> $B%G%#%l%/%F%#%V$N(B
  113.     $BFCNc$G$9!#0J2<$N(B 2 $B9T$N8z2L$OF1$8$G$9(B:</p>
  114.  
  115. <example>
  116.    BrowserMatchNoCase Robot is_a_robot<br />
  117.    SetEnvIfNoCase User-Agent Robot is_a_robot<br />
  118. </example>
  119. </usage>
  120. </directivesynopsis>
  121.  
  122. <directivesynopsis>
  123. <name>SetEnvIf</name>
  124. <description>$B%j%/%(%9%H$NB0@-$K4p$E$$$F4D6-JQ?t$r@_Dj$9$k(B
  125. </description>
  126. <syntax>SetEnvIf <em>attribute
  127.     regex [!]env-variable</em>[=<em>value</em>]
  128.     [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
  129. <contextlist><context>server config</context>
  130. <context>virtual host</context><context>directory</context>
  131. <context>.htaccess</context></contextlist>
  132. <override>FileInfo</override>
  133.  
  134. <usage>
  135.     <p><directive>SetEnvIf</directive>
  136.     $B%G%#%l%/%F%#%V$O!"%j%/%(%9%H$NB0@-$K4p$E$$$F4D6-JQ?t$rDj5A$7$^$9!#(B
  137.     $B:G=i$N0z?t$G;XDj$G$-$k(B <em>attribute</em> $B$O0J2<$N;0$D$N$I$l$+$G$9(B:</p>
  138.  
  139. <ol>
  140. <li>HTTP $B%j%/%(%9%H%X%C%@%U%#!<%k%I(B ($B>\$7$$>pJs$O(B <a
  141.     href="http://www.rfc-editor.org/rfc/rfc2616.txt">RFC 2616</a> $B$r(B
  142.     $B;2>H$7$F$/$@$5$$(B)$B!#Nc$($P!"(B<code>Host</code>,
  143.     <code>User-Agent</code>, <code>Referer</code>, 
  144.     <code>Accept-Language</code> $B$G$9!#%j%/%(%9%H%X%C%@$N=89g$r8=$9$?$a$K(B
  145.     $B@55,I=8=$r;H$&$3$H$b$G$-$^$9!#(B</li>
  146.  
  147. <li>$B0J2<$N%j%/%(%9%H$N0lItJ,$N$I$l$+(B:
  148.  
  149.     <ul>
  150.       <li><code>Remote_Host</code> -
  151.       $B%j%/%(%9%H$r9T$J$C$F$$$k%/%i%$%"%s%H$N%[%9%HL>(B ($B$b$7$"$l$P(B)</li>
  152.  
  153.       <li><code>Remote_Addr</code> -
  154.       $B%j%/%(%9%H$r9T$J$C$F$$$k%/%i%$%"%s%H$N(B IP $B%"%I%l%9(B</li>
  155.  
  156.       <li><code>Server_Addr</code> - 
  157.       $B%j%/%(%9%H$r<u$1<h$C$?%5!<%P$N(B IP $B%"%I%l%9(B
  158.       (2.0.43 $B0J9_$N$_(B)</li>
  159.  
  160.       <li><code>Request_Method</code> -
  161.       $B;HMQ$5$l$F$$$k%a%=%C%IL>(B (<code>GET</code>, <code>POST</code>
  162.       <em>$B$J$I(B</em>)</li>
  163.  
  164.       <li><code>Request_Protocol</code> -
  165.       $B%j%/%(%9%H$,9T$J$o$l$?%W%m%H%3%k$NL>A0$H%P!<%8%g%s(B
  166.       (<em>$BNc$($P(B</em>$B!"(B"HTTP/0.9", "HTTP/1.1" <em>$B$J$I!#(B</em>)</li>
  167.  
  168.       <li><code>Request_URI</code> -
  169.       URL $B$N%9%-!<%`$H%[%9%H$N8e$NItJ,(B</li>
  170.     </ul>
  171. </li>
  172.  
  173. <li>$B%j%/%(%9%H$H4XO"IU$1$i$l$k4D6-JQ?t$N%j%9%H!#$3$l$K$h$j(B
  174. <directive>SetEnvIf</directive> $B%G%#%l%/%F%#%V$,0JA0$N%^%C%A$N7k2L$r(B
  175. $B;H$&$3$H$,$G$-$k$h$&$K$J$j$^$9!#$3$NJ}K!$N%F%9%H$G$OA0$NItJ,$K$"$k(B
  176. <code>SetEnvIf[NoCase]</code> $B$N7k2L$N$_$r;HMQ2DG=$G$9!#!VA0!W$H$O!"(B
  177. $B$h$j9-$$HO0O$KBP$7$FDj5A$5$l$F$$$k(B ($B%5!<%PA4BN$N$h$&$K(B) $B$+!"8=:_$N%G%#%l%/%F%#%V$N(B
  178. $BHO0O$G$h$jA0$NItJ,$GDj5A$5$l$F$$$k$+!"$H$$$&$3$H$G$9!#(B
  179. $B4D6-JQ?t$G$"$k2DG=@-$O!"%j%/%(%9%H$NFC@-$KBP$9$k%^%C%A$,B8:_$;$:!"(B
  180. <em>attribute</em> $B$K@55,I=8=$,;H$o$l$J$+$C$?$H$-$K$N$_9MN8$5$l$^$9!#(B</li>
  181. </ol>
  182.  
  183. <p>$BFs$DL\$N0z?t(B (<em>regex</em>) $B$O(B <a
  184. href="http://www.pcre.org/">Perl $B8_49$N@55,I=8=(B</a>$B$G$9!#(B
  185. $B$3$l$O(B POSIX.2 $B$N(B egrep $B7A<0$N@55,I=8=$H;w$F$$$^$9!#(B<em>regex</em> $B$,(B
  186. <em>attribute</em> $B$K%^%C%A$9$k>l9g$O!";D$j$N0z?t$,I>2A$5$l$^$9!#(B</p>
  187.  
  188. <p>$B;D$j$N0z?t$O@_Dj$9$kJQ?t$NL>A0$G!"@_Dj$5$l$kCM$r;XDj$9$k$3$H$b$G$-$^$9!#(B
  189. $B$3$l$O!"(B</p>
  190.  
  191.     <ol>
  192.       <li><code><em>varname</em></code></li>
  193.  
  194.       <li><code>!<em>varname</em></code></li>
  195.  
  196.       <li><code><em>varname</em>=<em>value</em></code></li>
  197.     </ol>
  198.  
  199.     <p>$B$N$I$l$+$N7A<0$K$J$j$^$9!#(B</p>
  200.  
  201.     <p>$B:G=i$N7A<0$G$O!"CM$O(B "1" $B$K@_Dj$5$l$^$9!#(B
  202.     $BFs$DL\$O$b$7CM$,Dj5A$5$l$F$$$l$P$=$l$r<h$j=|$-$^$9!#(B
  203.     $B;0$DL\$OJQ?t$r(B <code><em>value</em></code> $B$NM?$($i$l$?CM$K@_Dj$7$^$9!#(B
  204.     2.0.51 $B0J9_$G$O!"(B<var>regex</var> $BFb$K(B <code>$1</code>..<code>$9</code>
  205.     $B$,B8:_$9$l$P$=$l$rG'<1$7!"(B<var>regex</var> $B$NBP1~$9$k4]3g8L$G0O$^$l$?ItJ,$G(B
  206.     $BCV49$7$^$9!#(B</p>
  207.  
  208. <example>
  209. <title>$BNc(B:</title>
  210.    SetEnvIf Request_URI "\.gif$" object_is_image=gif<br />
  211.    SetEnvIf Request_URI "\.jpg$" object_is_image=jpg<br />
  212.    SetEnvIf Request_URI "\.xbm$" object_is_image=xbm<br />
  213.         :<br />
  214.    SetEnvIf Referer www\.mydomain\.com intra_site_referral<br />
  215.         :<br />
  216.    SetEnvIf object_is_image xbm XBIT_PROCESSING=1<br />
  217.         :<br />
  218.    SetEnvIf ^TS*  ^[a-z].*  HAVE_TS<br />
  219. </example>
  220.  
  221.     <p>$B=i$a$N;0$D$O%j%/%(%9%H$,2hA|$G$"$k$H$-$K4D6-JQ?t(B
  222.     <code>object_is_image</code> $B$r@_Dj$7$^$9!#;M$DL\$O(B
  223.     $B;2>H85$N%Z!<%8$,%&%'%V%5%$%H(B <code>www.mydomain.com</code> $B$K$"$k$H$-$K(B
  224.     <code>intra_site_referral</code> $B$r@_Dj$7$^$9!#(B</p>
  225.  
  226.     <p>$B:G8e$NNc$O!"%j%/%(%9%H$K(B "TS" $B$G;O$^$j!"CM$,=89g(B [a-z] $B$N$I$l$+$G(B
  227.     $B;O$^$k%X%C%@$,$"$k$H$-$K(B <code>HAVE_TS</code> $B$r@_Dj$7$^$9!#(B</p>
  228. </usage>
  229.  
  230. <seealso>$BB>$NNc$O!"(B<a href="../env.html">Apache $B$N4D6-JQ?t(B</a>
  231. </seealso>
  232. </directivesynopsis>
  233.  
  234. <directivesynopsis>
  235. <name>SetEnvIfNoCase</name>
  236. <description>$B%j%/%(%9%H$NB0@-$K4p$E$$$FBgJ8;z>.J8;z$r6hJL$;$:$K4D6-JQ?t$r@_Dj$9$k(B</description>
  237. <syntax>SetEnvIfNoCase <em>attribute regex 
  238.         [!]env-variable</em>[=<em>value</em>]
  239.     [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
  240. <contextlist><context>server config</context>
  241. <context>virtual host</context><context>directory</context>
  242. <context>.htaccess</context></contextlist>
  243. <override>FileInfo</override>
  244. <compatibility>Apache 1.3 $B0J9_(B</compatibility>
  245.  
  246. <usage>
  247.  
  248.     <p><directive>SetEnvIfNoCase</directive> $B$O0UL#E*$K$O(B
  249.     <directive module="mod_setenvif">SetEnvIf</directive> $B%G%#%l%/%F%#%V$H(B
  250.     $BF1$8$G$9!#0c$$$O!"@55,I=8=$N%^%C%A%s%0$,BgJ8;z>.J8;z$r6hJL$7$J$$$G(B
  251.     $B9T$J$o$l$k$3$H$G$9!#Nc$($P(B:</p>
  252.  
  253. <example>
  254.    SetEnvIfNoCase Host Apache\.Org site=apache
  255. </example>
  256.  
  257.     <p>$B$3$l$O(B HTTP $B%j%/%(%9%H%X%C%@$K%U%#!<%k%I(B <code>Host:</code> $B$,(B
  258.     $B$"$j!"$=$NCM$,(B <code>Apache.Org</code> $B$d(B <code>apache.org</code>$B!"(B
  259.     $B$=$NB>$NBgJ8;z>.J8;z$NAH$_9g$o$;$G$"$C$?$H$-$K(B <code>site</code>
  260.     $B4D6-JQ?t$r(B "<code>apache</code>" $B$K@_Dj$7$^$9!#(B</p>
  261.  
  262. </usage>
  263. </directivesynopsis>
  264. </modulesynopsis>
  265.