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 / F278275_mod_deflate.xml.ja < prev    next >
Extensible Markup Language  |  2004-09-06  |  14KB  |  329 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.12.2.9 -->
  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_deflate.xml.meta">
  23.  
  24. <name>mod_deflate</name>
  25. <description>$B%/%i%$%"%s%H$XAw$i$l$kA0$K%3%s%F%s%D$r05=L$9$k(B</description>
  26. <status>Extension</status>
  27. <sourcefile>mod_deflate.c</sourcefile>
  28. <identifier>deflate_module</identifier>
  29.  
  30. <summary>
  31.     <p><module>mod_deflate</module> $B%b%8%e!<%k$O(B <code>DEFLATE</code>
  32.     $B=PNO%U%#%k%?$rDs6!$7$^$9!#$3$l$O%5!<%P$+$i$N=PNO$r!"%M%C%H%o!<%/$r(B
  33.     $BDL$7$F%/%i%$%"%s%H$KAw$kA0$K05=L$9$k$3$H$r2DG=$K$7$^$9!#(B</p>
  34. </summary>
  35. <seealso><a href="../filter.html">Filters</a></seealso>
  36.  
  37. <section id="recommended"><title>$B%5%s%W%k@_Dj(B</title>
  38.     <p>$B2<$K$;$C$+$A$J?M8~$1$N4JC1$J@_DjNc$r<($7$^$9!#(B</p>
  39.  
  40.     <example><title>$B?t%?%$%W$N$_05=L$9$k(B</title>
  41.       AddOutputFilterByType DEFLATE text/html text/plain text/xml
  42.     </example>
  43.  
  44.     <p>$B0J2<$N@_Dj$O%3%s%F%s%D$r$h$j05=L$7$^$9$,!"$:$C$HJ#;($J@_Dj$K$J$j$^$9!#(B
  45.     $B@_Dj$N6y!9$^$G$h$/M}2r$7$J$$$G;H$o$J$$$G$/$@$5$$!#(B</p>
  46.  
  47.     <example><title>$B2hA|0J30A4$F05=L$9$k(B</title>
  48.       <Location /><br />
  49.       <indent>
  50.         # Insert filter<br />
  51.         SetOutputFilter DEFLATE<br />
  52.         <br />
  53.         # Netscape 4.x has some problems...<br />
  54.         BrowserMatch ^Mozilla/4         gzip-only-text/html<br />
  55.         <br />
  56.         # Netscape 4.06-4.08 have some more problems<br />
  57.         BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
  58.         <br />
  59.         # MSIE masquerades as Netscape, but it is fine<br />
  60.         # BrowserMatch \bMSIE             !no-gzip !gzip-only-text/html<br />
  61.         <br />
  62.         # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48<br />
  63.         # the above regex won't work. You can use the following<br />
  64.         # workaround to get the desired effect:<br />
  65.         BrowserMatch \bMSI[E]           !no-gzip !gzip-only-text/html<br />
  66.         <br />
  67.         # Don't compress images<br />
  68.         SetEnvIfNoCase Request_URI \<br />
  69.         <indent>
  70.           \.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
  71.         </indent>
  72.         <br />
  73.         # Make sure proxies don't deliver the wrong content<br />
  74.         Header append Vary User-Agent env=!dont-vary<br />
  75.       </indent>
  76.       </Location>
  77.     </example>
  78.  
  79. </section>
  80.  
  81. <section id="enable"><title>$B05=L$rM-8z$K$9$k(B</title>
  82.  
  83.     <section id="output"><title>Output Compression</title>
  84.       <p>$B05=L5!G=$O(B <code>DEFLATE</code> <a href="../filter.html">$B%U%#%k%?(B</a>
  85.       $B$K$h$j<BAu$5$l$F$$$^$9!#0J2<$N%G%#%l%/%F%#%V$O$=$N%G%#%l%/%F%#%V$N$"$k(B
  86.       $B%3%s%F%JCf$N%I%-%e%a%s%H$r05=L$9$k$h$&$K$7$^$9(B:</p>
  87.       
  88.       <example>
  89.         SetOutputFilter DEFLATE
  90.       </example>
  91.  
  92.       <p>$B$h$/;H$o$l$F$$$k%V%i%&%6$G$O!"$9$Y$F$N%3%s%F%s%D$KBP$9$k(B
  93.       $B05=L$r07$($k$o$1$G$O$"$j$^$;$s!#$G$9$+$i!"(B<code>gzip-only-text/html</code> 
  94.       $B%N!<%H$r(B <code>1</code> $B$K$7$F!"(Bhtml $B%U%!%$%k$KBP$7$F$N$_(B
  95.       $B05=L$,F/$/$h$&$K$7$?J}$,$h$$$+$b$7$l$^$;$s(B ($B0J2<;2>H(B)
  96.       $B$3$NCM$r(B <em><code>1</code> $B0J30$NCM(B</em>$B$K@_Dj$7$?>l9g$OL5;k$5$l$^$9!#(B</p>
  97.       
  98.       <p>$BDL>o!"FCDj$N(BMIME$B%?%$%W$K$D$$$F$N$_05=L$7$?$$$N$G$"$l$P!"(B
  99.       <directive module="core">AddOutputFilterByType</directive>
  100.       $B%G%#%l%/%F%#%V$r;HMQ$7$^$9!#<!$K(B Apache $B$N%I%-%e%a%s%H$N(B html
  101.       $B%U%!%$%k$N$_$N05=L$rM-8z$K$9$kNc$r<($7$^$9!#(B</p>
  102.  
  103.       <example>
  104.         <Directory "/your-server-root/manual"><br />
  105.         <indent>
  106.           AddOutputFilterByType DEFLATE text/html<br />
  107.         </indent>
  108.         </Directory>
  109.       </example>
  110.  
  111.       <p>$BA4$F$N%U%!%$%k%?%$%W$G$N05=L$KLdBj$rJz$($F$$$k%V%i%&%6$KBP$7$F$O!"(B
  112.       <directive module="mod_setenvif">BrowserMatch</directive>
  113.       $B%G%#%l%/%F%#%V$r;HMQ$7$F!"FCDj$N%V%i%&%6$K(B <code>no-gzip</code>
  114.       $B%N!<%H$r%;%C%H$7!"05=L$,9T$J$o$l$J$$$h$&$K$7$^$9!#(B
  115.       <code>no-gzip</code> $B$H(B <code>gzip-only-text/html</code>
  116.       $B$rAH$_9g$o$;$k$3$H$G>e<j$/BP=h$G$-$^$9!#(B
  117.       $B$3$N>l9g!"A0<T$,8e<T$r%*!<%P!<%i%$%I$7$^$9!#(B
  118.       $B>e5-$N(B<a href="#recommended">$B@_DjNc(B</a>$B$NH4?h$r(B
  119.       $B<!$K<($7$^$9$N$G$4Mw2<$5$$!#(B</p>
  120.  
  121.       <example>
  122.         BrowserMatch ^Mozilla/4         gzip-only-text/html<br />
  123.         BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
  124.         BrowserMatch \bMSIE             !no-gzip !gzip-only-text/html
  125.       </example>
  126.  
  127.       <p>$B$^$:;O$a$K(B <code>User-Agent</code> $BJ8;zNs$+$i(B Netscape Navigator
  128.       4.x $B$G$"$k$+$I$&$+$rD4$Y$^$9!#$3$l$i$N%P!<%8%g%s$G$O!"(B
  129.       <code>text/html</code> $B0J30$N%?%$%W$N05=L$r07$&$3$H$,$G$-$^$;$s!#(B
  130.       4.06, 4.07, 4.08 $B$O(B html $B%U%!%$%k$N?-D%$K$bLdBj$rJz$($F$$$^$9!#(B
  131.       $B$G$9$+$i$3$l$i$KBP$7$F$O!"40A4$K(B deflate $B%U%#%k%?$r%*%U$K$7$^$9!#(B</p>
  132.  
  133.       <p>3 $BHVL\$N(B <directive module="mod_setenvif">BrowserMatch</directive>
  134.       $B%G%#%l%/%F%#%V$G!"?dB,$7$?%f!<%6!<%(!<%8%'%s%H$r=$@5$7$^$9!#(B
  135.       $B$J$<$J$i(B Microsoft Internet Explorer $B$b(B "Mozilla/4" $B$HFCDj$5$l$^$9$,!"(B
  136.       $B$3$l$i$O<B:]$K$O05=L$r07$&$3$H$,$G$-$k$+$i$G$9!#(B
  137.       <code>User-Agent</code> $B%X%C%@$r(B "MSIE"
  138.       (<code>\b</code> $B$O!VC18l$N6-3&!W$r0UL#$7$^$9(B) $B$NDI2CJ8;z$G8!::$7$F!"(B
  139.       $B$3$l0JA0$K@_Dj$7$?@)8B$r:F$S2r=|$7$^$9!#(B</p>
  140.  
  141.       <note><title>$BCm(B</title>
  142.         <code>DEFLATE</code> $B%U%#%k%?$OI,$:!"(BPHP $B$d(B SSI $B$H$$$C$?(B RESOURCE
  143.         $B%U%#%k%?$N8e$K$J$j$^$9!#(B
  144.         DEFLATE $B%U%#%k%?$OFbItE*$J%5%V%j%/%(%9%H$r4XCN$7$^$;$s!#(B
  145.       </note>
  146.  
  147.     </section>
  148.  
  149.     <section id="input"><title>$BF~NO$N?-D%(B</title>
  150.       <p><module>mod_deflate</module> $B%b%8%e!<%k$O!"(Bgzip
  151.       $B$G05=L$5$l$?%j%/%(%9%HK\BN$r?-D%$9$k%U%#%k%?$bDs6!$7$F$$$^$9!#(B
  152.       $B$3$N5!G=$rM-8z$K$9$k$K$O!"(B<directive module="core">SetInputFilter</directive>
  153.       $B$+(B <directive module="mod_mime">AddInputFilter</directive> $B$r;HMQ$7$F!"(B
  154.       <code>DEFLATE</code> $B%U%#%k%?$rF~NO%U%#%k%?%A%'%$%s$KAH$_9~$_$^$9!#(B
  155.       $BNc$($P<!$N$h$&$K$J$j$^$9!#(B</p>
  156.  
  157.       <example>
  158.         <Location /dav-area><br />
  159.         <indent>
  160.           SetInputFilter DEFLATE<br />
  161.         </indent>
  162.         </Location>
  163.       </example>
  164.       
  165.       <p>$B$3$N@_Dj$G$"$l$P!"(B<code>Content-Encoding: gzip</code>
  166.       $B%X%C%@$r4^$`%j%/%(%9%H$,Mh$k$H!"K\BN$O<+F0E*$K?-D%$5$l$^$9!#(B
  167.       gzip $B%j%/%(%9%HK\BN$rAw?.$9$k%V%i%&%6$O$"$^$j$"$j$^$;$s!#(B
  168.       $B$7$+$7!"Nc$($P(B <a href="http://www.webdav.org">WebDAV</a>
  169.       $B%/%i%$%"%s%H$N4v$D$+$J$I!"FCJL$J%"%W%j%1!<%7%g%s$G%j%/%(%9%H$N(B
  170.       $B05=L$r<B:]$K%5%]!<%H$7$F$$$k$b$N$b$"$j$^$9!#(B</p>
  171.  
  172.       <note type="warning"><title>Content-Length $B$K4X$9$kCm0U(B</title>
  173.         <p>$B%j%/%(%9%HK\BN$=$l<+BN$rI>2A$9$k>l9g$O!"(B<em><code>Content-Length</code>
  174.         $B%X%C%@$r?.MQ$7$J$$$G$/$@$5$$(B</em>$B!#(BContent-Length $B%X%C%@$O!"(B
  175.         $B%/%i%$%"%s%H$+$iAw?.$5$l$k%G!<%?$ND9$5$rH?1G$7$F$$$k$N$G$"$C$F!"(B
  176.         $B?-D%$5$l$?%G!<%?%9%H%j!<%`$N(B<em>$B%P%$%H%+%&%s%H$G$O$"$j$^$;$s(B</em>$B!#(B</p>
  177.       </note>
  178.     </section>
  179. </section>
  180.  
  181. <section id="proxies"><title>Proxy $B%5!<%P$G$N07$$(B</title>
  182.  
  183.     <p><module>mod_deflate</module> $B%b%8%e!<%k$O(B <code>Vary: Accept-Encoding</code>
  184.     HTTP $B1~Ez%X%C%@$rAw?.$7$F!"E,@Z$J(B <code>Accept-Encoding</code>
  185.     $B%j%/%(%9%H%X%C%@$rAw?.$9$k%/%i%$%"%s%H$KBP$7$F$N$_!"(B
  186.     $B%W%m%/%7%5!<%P$,%-%c%C%7%e$7$?1~Ez$rAw?.$9$k$h$&$KCm0U$r4-5/$7$^$9!#(B
  187.     $B$3$N$h$&$K$7$F!"05=L$r07$&$3$H$N$G$-$J$$%/%i%$%"%s%H$K(B
  188.     $B05=L$5$l$?FbMF$,Aw$i$l$k$3$H$N$J$$$h$&$K$7$^$9!#(B</p>
  189.  
  190.     <p>$B$b$7FCJL$K2?$+$K0MB8$7$F=|30$7$?$$>l9g!"Nc$($P(B <code>User-Agent</code>
  191.     $B%X%C%@$J$I$K0MB8$7$F$$$k>l9g!"<jF0$G(B <code>Vary</code> $B%X%C%@$r@_Dj$7$F!"(B
  192.     $BDI2C$N@)8B$K$D$$$F%W%m%/%7%5!<%P$KCm0U$r9T$J$&I,MW$,$"$j$^$9!#(B
  193.     $BNc$($P(B <code>User-Agent</code> $B$K0MB8$7$F(B <code>DEFLATE</code>
  194.     $B$rDI2C$9$kE57?E*$J@_Dj$G$O!"<!$N$h$&$KDI2C$9$k$3$H$K$J$j$^$9!#(B</p>
  195.  
  196.     <example>
  197.       Header append Vary User-Agent
  198.     </example>
  199.     
  200.     <p>$B%j%/%(%9%H%X%C%@0J30$N>pJs(B (<em>$BNc$($P(B</em> HTTP $B%P!<%8%g%s(B)
  201.     $B$K0MB8$7$F05=L$9$k$+$I$&$+7h$a$k>l9g!"(B
  202.     <code>Vary</code> $B%X%C%@$r(B <code>*</code> $B$K@_Dj$9$kI,MW$,$"$j$^$9!#(B
  203.     $B$3$N$h$&$K$9$k$H!";EMM$K=`5r$7$?%W%m%/%7$O%-%c%C%7%e$rA4$/9T$J$o$J$/$J$j$^$9!#(B</p>
  204.  
  205.     <example><title>$BNc(B</title>
  206.       Header set Vary *
  207.     </example>
  208. </section>
  209.  
  210. <directivesynopsis>
  211. <name>DeflateFilterNote</name>
  212. <description>$B%m%.%s%0MQ$K05=LHf$r%a%b$KDI2C(B</description>
  213. <syntax>DeflateFilterNote [<var>type</var>] <var>notename</var></syntax>
  214. <contextlist><context>server config</context>
  215. <context>virtual host</context></contextlist>
  216. <compatibility><var>type</var> is available since Apache 2.0.45</compatibility>
  217.  
  218. <usage>
  219.     <p><directive>DeflateFilterNote</directive> $B%G%#%l%/%F%#%V$O(B
  220.     $B05=LHf$K4X$9$k%a%b$,%j%/%(%9%H$KIU2C$5$l$k$3$H$r;XDj$7$^$9!#(B
  221.     $B%a%b(B (note) $B$NL>A0$O%G%#%l%/%F%#%V$K;XDj$5$l$?CM$G$9!#(B
  222.     $B%a%b$O(B<a href="../logs.html#accesslog">$B%"%/%;%9%m%0(B</a>$B$K(B
  223.     $BCM$r5-O?$7!"E}7W$r<h$kL\E*$K$b;H$($^$9!#(B</p>
  224.  
  225.     <example><title>$BNc(B</title>
  226.       DeflateFilterNote ratio<br />
  227.       <br />
  228.       LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate<br />
  229.       CustomLog logs/deflate_log deflate
  230.     </example>
  231.  
  232.     <p>$B%m%0$+$i$b$C$H@:L)$JCM$rCj=P$7$?$$>l9g$O!"(B<var>type</var>
  233.     $B0z?t$r;HMQ$7$F!"%G!<%?%?%$%W$r%m%0$N%a%b$H$7$F;D$9$h$&$K;XDj$G$-$^$9!#(B
  234.     <var>type</var> $B$O<!$N$&$A$N0l$D$G$9!#(B</p>
  235.  
  236.     <dl>
  237.       <dt><code>Input</code></dt>
  238.       <dd>$B%U%#%k%?$NF~NO%9%H%j!<%`$N%P%$%H%+%&%s%H$r%a%b$KJ]B8$9$k!#(B</dd>
  239.  
  240.       <dt><code>Output</code></dt>
  241.       <dd>$B%U%#%k%?$N=PNO%9%H%j!<%`$N%P%$%H%+%&%s%H$r%a%b$KJ]B8$9$k!#(B</dd>
  242.  
  243.       <dt><code>Ratio</code></dt>
  244.       <dd>$B05=LN((B (<code>$B=PNO(B / $BF~NO(B * 100</code>) $B$r%a%b$KJ]B8$9$k!#(B
  245.       <var>type</var> $B0z?t$r>JN,$7$?>l9g$O!"$3$l$,%G%U%)%k%H$H$J$j$^$9!#(B</dd>
  246.     </dl>
  247.  
  248.     <p>$B$^$H$a$k$H!"<!$N$h$&$K%m%0$r<h$k$3$H$K$J$k$G$7$g$&!#(B</p>
  249.  
  250.     <example><title>$B@:L)$J%m%0:N<h(B</title>
  251.       DeflateFilterNote Input instream<br />
  252.       DeflateFilterNote Output outstream<br />
  253.       DeflateFilterNote Ratio ratio<br />
  254.       <br />
  255.       LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate<br />
  256.       CustomLog logs/deflate_log deflate
  257.     </example>
  258. </usage>
  259. <seealso><module>mod_log_config</module></seealso>
  260. </directivesynopsis>
  261.  
  262. <directivesynopsis>
  263. <name>DeflateBufferSize</name>
  264. <description>zlib $B$,0lEY$K05=L$9$k2t$NBg$-$5(B</description>
  265. <syntax>DeflateBufferSize <var>value</var></syntax>
  266. <default>DeflateBufferSize 8096</default>
  267. <contextlist><context>server config</context>
  268. <context>virtual host</context></contextlist>
  269.  
  270. <usage>
  271.     <p><directive>DeflateBufferSize</directive> $B%G%#%l%/%F%#%V$O(B
  272.     zlib $B$,0lEY$K05=L$9$k2t$NBg$-$5$r%P%$%HC10L$G;XDj$7$^$9!#(B</p>
  273. </usage>
  274. </directivesynopsis>
  275.  
  276. <directivesynopsis>
  277. <name>DeflateWindowSize</name>
  278. <description>Zlib $B$N05=LMQ%&%#%s%I%&$NBg$-$5(B</description>
  279. <syntax>DeflateWindowSize <var>value</var></syntax>
  280. <default>DeflateWindowSize 15</default>
  281. <contextlist><context>server config</context>
  282. <context>virtual host</context></contextlist>
  283.  
  284. <usage>
  285.     <p><directive>DeflateWindowSize</directive> $B%G%#%l%/%F%#%V$O(B
  286.     zlib $B$N05=LMQ%&%#%s%I%&(B ($BLuCm(B: zlib $B$G;HMQ$5$l$kMzNr%P%C%U%!(B) 
  287.     $B$NBg$-$5$r;XDj$7$^$9(B (1 $B$+$i(B 15 $B$N4V$NCM(B)$B!#(B
  288.     $B0lHLE*$KBg$-$J%&%#%s%I%&%5%$%:$r;HMQ$9$k$H05=LN($,8~>e$7$^$9!#(B
  289.     ($BLuCm(B: 2 $B$rDl$H$9$kBP?t$NCM$K$J$j$^$9!#(B
  290.     8 $B$+$i(B 15 $B$K$9$k$N$,NI$$$G$7$g$&!#(B)</p>
  291. </usage>
  292. </directivesynopsis>
  293.  
  294. <directivesynopsis>
  295. <name>DeflateMemLevel</name>
  296. <description>zlib $B$,05=L$K;H$&%a%b%j$N%l%Y%k$r;XDj(B</description>
  297. <syntax>DeflateMemLevel <var>value</var></syntax>
  298. <default>DeflateMemLevel 9</default>
  299. <contextlist><context>server config</context>
  300. <context>virtual host</context></contextlist>
  301.  
  302. <usage>
  303.     <p><directive>DeflateMemLevel</directive> $B%G%#%l%/%F%#%V$O(B
  304.     zlib $B$,05=L$K;H$&%a%b%j$N%l%Y%k$r@_Dj$7$^$9(B (1 $B$+$i(B 9 $B$N4V$NCM(B)$B!#(B
  305.     ($BLuCm(B: 2 $B$rDl$H$9$kBP?t$NCM$K$J$j$^$9!#(B
  306.     8 $BDxEY$,NI$$$G$7$g$&!#(B)</p>
  307. </usage>
  308. </directivesynopsis>
  309.  
  310. <directivesynopsis>
  311. <name>DeflateCompressionLevel</name>
  312. <description>$B=PNO$KBP$7$F9T$J$&05=L$NDxEY(B</description>
  313. <syntax>DeflateCompressionLevel <var>value</var></syntax>
  314. <default>Zlib $B$N%G%U%)%k%H(B</default>
  315. <contextlist><context>server config</context><context>virtual host</context>
  316. </contextlist>
  317. <compatibility>This directive is available since Apache 2.0.45</compatibility>
  318.  
  319. <usage>
  320.      <p><directive>DeflateCompressionLevel</directive> $B%G%#%l%/%F%#%V$O(B
  321.          $B05=L$NDxEY$r@_Dj$7$^$9!#Bg$-$JCM$G$O!"$h$j05=L$,9T$J$o$l$^$9$,!"(B
  322.          CPU $B;q8;$r>CHq$7$^$9!#(B</p>
  323.     <p>$BCM$O(B 1 ($BDc05=L(B) $B$+$i(B 9 ($B9b05=L(B) $B$G$9!#(B</p>
  324. </usage>
  325. </directivesynopsis>
  326.  
  327. </modulesynopsis>
  328.  
  329.