Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://www.arcetri.astro.it/manual/ko/mod/mod_deflate.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013
Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 06:25:35 2014
Êîäèðîâêà: ISO8859-5

Ïîèñêîâûå ñëîâà: ï ï ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï ð ï ï ð ï
mod_deflate - Apache HTTP Server
<-
Apache > HTTP Server > Documentation > Version 2.2 > È?Åò

ÎÖÖÔÔÅ È?Åò mod_deflate

ÀÅÄÙ×á Î?Îþ:  en  |  ja  |  ko 

ÐÜ É?Ì-ÄÒ ÓæÍÕÖ× É?Ï?ÐÜ ÎÖÄåÄßÄé. ÓæÁéÏÅ Ê?ÀöÅØ ÃËÏûÐÊ ÏÅÎþ É?Ì-È? Ò?Àý×ßÌÌÏô.
ÌÃÈý:ÃËÏûÐË Õ?Æ?ÐÜÎ?Ö?ÇÞ ÊÈÃËÁò Ð?ÏÅ ÎàÓð×áÄé
Ë?ÕÒ:Extension
È?ÅòÈý:deflate_module
ÌâÍÊÖÔÐß:mod_deflate.c

ÏôÎð

mod_deflate È?ÅòÐÊ Ì-É?Ð× ÓòÇÒÐË ÃçÖ?Ï?ÐÈÇÞ Õ?Æ?ÐÜÎ?Ö?ÏÅ ÊÈÃËÁò Ð?ÏÅ ÎàÓð×ßÄÒ DEFLATE ÓòÇÒ×ÚÕÝÈ? Ñ?À?×áÄé.

Ñ?ÍÓÎþÅù

ÑæÑ?

Ò?Àý

top

ÀïÊË ÌÃÑ?

Áî×á Ë÷Æ?ÐË Ð?×á ÀïÊË ÌÃÑ?ÐÜÄé.

ÐßÊÞ typeÈÈ ÎàÓð

AddOutputFilterByType DEFLATE text/html text/plain text/xml

ÎÖÇÅ ÌÃÑ?ÐÊ ÏôÎð×ßÏÄÑ?ÈÈ ÁçÇÅÅÅ ÊÉÐò×ßÄé. ÌÃÑ?ÐË ÏßÐ?Ø? ÐÜ×è×á ØÔ Ë÷Ïû×ßÆ?.

ÐÜÉÜÑ?È? Ñ?Ïì×á È?Å÷ ÀÝÐË ÎàÓð

<Location />
# ×ÚÕÝÈ? ÓïÀÅ×áÄé
SetOutputFilter DEFLATE

# Netscape 4.xÏÅ É?Ñ?ÀÅ ÐæÄé...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08ÏÅ Ä? É?Ñ?ÀÅ ÐæÄé
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIEÐÊ NetscapeÆ?Àý ÐêÍÕÐË ÎÛÈ?Ñ?ÈÈ, É?Ñ?ÀÅ Î?Äé
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# ÑæÐ×: ÎÖÖÔÔÅ 2.0.48ÁþÑ? mod_setenvifÐ× É?ÁçÆ?É?ÏÅ
# Ð?Ð× Ñ?Áä×?×?ÍÔÐÊ ÅÏÐë×ßÑ? ÎÚÄÒÄé. Ï?×ßÄÒ ØÏÀ?È?
# Î?ÁòÐ?×è ÄéÐÍÀ? ÀÀÐÜ Ì?Ñ?×ßÏ? Ë÷Ïû×áÄé:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# ÐÜÉÜÑ?È? ÎàÓð×ßÑ? ÎÚÄÒÄé
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# ×ÑÇßÍÓÀÅ ÐïÈ?ÅØ ÃËÏûÐË Ð?Äî×ßÑ?ÎÚÅÅÇß ×áÄé
Header append Vary User-Agent env=!dont-vary
</Location>

top

ÎàÓð×ßÁò

ÓòÇÒ ÎàÓð

DEFLATE ×ÚÕÝÀÅ ÎàÓðÐË ×áÄé. ÄéÐÍ Ñ?ÍÓÎþÄÒ Ñ?ÍÓÎþÀÅ ÐæÄÒ Ð?ÔÅÐ× É?Ì-È? ÎàÓð×áÄé:

SetOutputFilter DEFLATE

È?Å÷ ÃËÏûÐË ÎàÓð×ßÈù ÓÃÈ?×ßÑ? È?×ßÄÒ ÊúÆ?ÏüÐ?ÀÅ ÐæÁòÆ?É?ÏÅ html ÖÔÐßÈÈÐË ÎàÓð×ßÁòÐ?×è (ÎÖÇÅ Ò?Àý) gzip-only-text/htmlÐË 1ÇÞ ÌÃÑ?×âÑ?ÅÅ È?È?Äé. ÐÜÈ? 1ÐÜ ÎÖÄá À?ÐÈÇÞ ÌÃÑ?×ßÈù É?ÍÓ×áÄé.

ÊÈÕû Ö?ÊÀ×á MIME typeÈÈ ÎàÓð×ßÇÑÈù AddOutputFilterByType Ñ?ÍÓÎþÈ? Ë÷Ïû×áÄé. ÄéÐÍ ÌÃÑ?ÐÊ html ÖÔÐßÈÈÐË ÎàÓð×áÄé:

<Directory "/your-server-root/manual">
AddOutputFilterByType DEFLATE text/html
</Directory>

ÎàÓð×á ÖÔÐßÐË ÓÃÈ?×ßÑ? È?×ßÄÒ ÊúÆ?ÏüÐ?ÏÅÀäÄÒ ÎàÓð×ßÑ?ÎÚÀý ÊÈÃËÁöÐ?×è BrowserMatch Ñ?ÍÓÎþÏÅ no-gzipÐË ÌÃÑ?×áÄé. ÓæÐ?Ð× ÀñÀ?È? Î?ÁòÐ?×è no-gzipÀ? gzip-only-text/htmlÐË ÀÀÐÜ Ë÷Ïû×â Ì? ÐæÄé. ÐÜ ÀöÏü Ð?ÐêÀÅ ØÔÐêÈ? É?ÍÓ×áÄé. Ð? ÐÐ× ÌÃÑ? ÏÉÑ? ÐßÊÞÈ? ËüÖüÊÈÐê:

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

ÈåÐ? User-Agent É?ÐêÏ-ÐË ÊÈÀý Netscape Navigator É?Ð? 4.xÐÞÑ? ÀÛË÷×áÄé. ÐÜ É?Ð?ÐÊ text/htmlÐÜ ÎÖÄá typeÐ× ÎàÓðÐË ÓÃÈ?×ßÑ? È?×áÄé. É?Ð? 4.06, 4.07, 4.08ÐÊ html ÖÔÐß ÎàÓðÐË ÓÃÈ?×ßÄÒÄûÅÅ É?Ñ?ÀÅ ÐæÄé. ÁçÇÅÌ- ÏüÈ?ÄÒ ÐÜ ÀöÏü deflate ×ÚÕÝÈ? ÏßÐ?Ø? Ë÷Ïû×ßÑ?ÎÚÄÒÄé.

ÌÌÉ?ÒÀ BrowserMatch Ñ?ÍÓÎþÄÒ Microsoft Internet ExplorerÀÅ ÐêÍÕÐË "Mozilla/4"ÇÞ ÎÛÈ?Ñ?ÈÈ ÎàÓðÅØ ÏôÓËÐË ÓÃÈ?×â Ì? ÐæÁòÆ?É?ÏÅ user agent ÓïÓ?ÐË Ì?Ñ?×áÄé. User-Agent ×üÄ?ÏÅÌ- "MSIE" (\bÄÒ "ÄìÎþ ÀöÀø"È? Æö×áÄé) É?ÐêÏ-ÐË ÉïÀï×ßÈù ÎåÏÅÌ- ÌÃÑ?×á Ñ?ÎðÐË ×?Äé.

ÑæÐ×

DEFLATE ×ÚÕÝÄÒ ×çË? PHPÃ? SSIÏÝ ÀÀÐÊ RESOURCE ×ÚÕÝ ÅêÏÅ ÅùÎþÀ?Äé. Æ×, ÃËÊÞ ×ßÐ?ÏôÓË(subrequest)ÏÅ ÏÅ×òÐË ÑæÑ? ÎÚÄÒÄé.

ÑæÐ×

SetEnvÇÞ force-gzip Ø?ÀöÊ?Ì?È? ÌÃÑ?×ßÈù ÊúÆ?ÏüÐ?Ð× accept-encoding ÌÃÑ?ÐË É?ÍÓ×ßÀý ÎàÓðÅØ ÀñÀ?È? ÊÈÃÍÄé.

ÓòÇÒ ÎàÓð×?Áò

mod_deflate È?ÅòÐÊ gzipÐÈÇÞ ÎàÓðÅØ ÐÐÄô ÃËÏûÐË ×?ÄÒ ×ÚÕÝÅÅ Ñ?À?×áÄé. ÐÜ ÁòÄÙÐË Ë÷Ïû×ßÇÑÈù ÄéÐÍÀ? ÀÀÐÜ SetOutputFilterÃ? AddOutputFilterÈ? Ë÷Ïû×ßÏ? ÓòÇÒ×ÚÕÝÌ?Ì-ÏÅ INFLATE ×ÚÕÝÈ? ÓïÀÅ×áÄé.

<Location /dav-area>
ProxyPass http://example.com/
SetOutputFilter INFLATE
</Location>

ÐÜ ÏÉÑ?ÄÒ example.comÐÜ ÊÈÃÍ gzipÐÈÇÞ ÎàÓðÅØ ÀñÀ?Ð× ÎàÓðÐË ×?ÎþÌ-, ÄéÈ? ×ÚÕÝÀÅ Ä? ÓÃÈ?×â Ì? ÐæÅÅÇß ×áÄé.

ÐäÇÒ ÎàÓð×?Áò

mod_deflate È?ÅòÐÊ gzipÐÈÇÞ ÎàÓðÅØ ÏôÓË ÃËÏûÐË ×?ÄÒ ×ÚÕÝÅÅ Ñ?À?×áÄé. ÐÜ ÁòÄÙÐË Ë÷Ïû×ßÇÑÈù ÄéÐÍÀ? ÀÀÐÜ SetInputFilterÃ? AddInputFilterÈ? Ë÷Ïû×ßÏ? ÐäÇÒ×ÚÕÝÌ?Ì-ÏÅ DEFLATE ×ÚÕÝÈ? ÓïÀÅ×áÄé.

<Location /dav-area>
SetInputFilter DEFLATE
</Location>

ÏôÓËÏÅ Content-Encoding: gzip ×üÄ?ÀÅ ÐæÄéÈù ÐêÅÏÐÈÇÞ ÎàÓðÅØ ÃËÏûÐË ×?Äé. gzip ÏôÓËÐË ×â Ì? ÐæÄÒ ÊúÆ?ÏüÐ?ÄÒ ÅõÉÀÄé. ÁçÇ?Ã? ÎþÆ WebDAV Õ?Æ?ÐÜÎ?Ö?ÏÝ ÀÀÐÊ Ö?ÊÀ×á ×ÑÇÞÁçÇ?ÐÊ ÏôÓË ÎàÓðÐË Ñ?Ï?×áÄé.

Content-LengthÏÅ Äû×á ÑæÐ×

ÏôÓË ÃËÏûÐË Ñ?Ñ? ËüÖüÊËÄéÈù, Content-Length ×üÄ?È? ÉßÑ?ÈÆÆ?! Content-Length ×üÄ?ÄÒ Õ?Æ?ÐÜÎ?Ö?ÀÅ ÊÈÃÍ ÃËÏûÐ× ÁöÐÜÐÜÑ?, ÎàÓðÐË ×? ÀñÀ?Ð× ÉéÐÜÖ?Ì?ÀÅ ÎÖÄßÄé.

top

×ÑÇßÍÓ Ì-É? ÄéÇ÷Áò

mod_deflate È?ÅòÐÊ ×ÑÇßÍÓÀÅ ÐêÍÕÐÜ ÔÃÍ?×á ÐÐÄôÐË Ð?Ð×á Accept-Encoding ÏôÓË ×üÄ?È? ÊÈÃÍ Õ?Æ?ÐÜÎ?Ö?ÏÅÀäÈÈ ÊÈÃËÅÅÇß Vary: Accept-Encoding HTTP ÐÐÄô ×üÄ?È? ÓïÀÅ×áÄé. ÁçÇÅÌ- ÎàÓðÅØ ÃËÏûÐË ÐÜ×è×â Ì? Î?ÄÒ Õ?Æ?ÐÜÎ?Ö?ÏÅ ÎàÓðÅØ ÃËÏûÐË ÊÈÃËÑ?ÎÚÅÅÇß ×áÄé.

ÏÉÈ? ÅùÎþ, User-Agent ×üÄ? ÅþÏÅ Å?Æ? Ö?ÊÀØ? ×ÚÕÝ Ð?ÏûÐË ÓûÌâ×áÄéÈù, ×ÑÇßÍÓÏÅÀä ÐÜÇ?×á Ñ?×áÐË ÎÛÇÑÑæÁòÐ?×è Ñ?Ñ? Vary ×üÄ?ÏÅ ÓïÀÅ×èÎï ×áÄé. ÏÉÈ? ÅùÎþ, ÌÃÑ?ÐÜ User-AgentÏÅ Å?Æ? DEFLATE ×ÚÕÝÈ? ÓïÀÅ×áÄéÈù ÄéÐÍÐË Ë÷Ïû×áÄé:

Header append Vary User-Agent

ÏôÓË ×üÄ?ÏìÐ× ÄéÈ? Ñ?ÊÈÏÅ (ÏÉÈ? ÅùÎþ, HTTP É?Ð?) Å?Æ? ÎàÓð Ï?ÊÞÀÅ ÀñÑ?ÅØÄéÈù, Vary ×üÄ?À?ÐË *ÇÞ ÌÃÑ?×èÎï ×áÄé. ÁçÇ?Èù ×?ÑèÐË Å?È?ÄÒ ×ÑÇßÍÓÄÒ ÔÃÍ?È? ×ßÑ? ÎÚÀä ÅØÄé.

ÏÉÑ?

Header set Vary *

top

DeflateBufferSize Ñ?ÍÓÎþ

ÌÃÈý:zlibÐÜ ×áÉ?ÏÅ ÎàÓð×â Õ?Áò
É?É:DeflateBufferSize value
ÁòÊËÀ?:DeflateBufferSize 8096
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Extension
È?Åò:mod_deflate

DeflateBufferSize Ñ?ÍÓÎþÄÒ zlibÐÜ ×áÉ?ÏÅ ÎàÓð×â ÉéÐÜÖ?Ì?È? Ñ?Ñ?×áÄé.

top

DeflateCompressionLevel Ñ?ÍÓÎþ

ÌÃÈý:ÓòÇÒÐË ÎþÄÐÑ?ÅÅ ÎàÓð×ßÄÒÀÅ
É?É:DeflateCompressionLevel value
ÁòÊËÀ?:Zlib's default
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Extension
È?Åò:mod_deflate
Ñ?Ï?:ÎÖÖÔÔÅ 2.0.45 ÊÞÕÝ

DeflateCompressionLevel Ñ?ÍÓÎþÄÒ Ë÷Ïû×â ÎàÓðÌ?ÑèÐË ÌÁÕÓ×áÄé. À?ÐÜ Õ?Ì?Çß ÎàÓðÇ?ÐÜ Ñ?ÀÅ×ßÑ?ÈÈ, CPUÈ? Ä? ÈÉÐÜ Ë÷Ïû×áÄé.

(ÀÅÐõ Ä? ÎàÓð) 1À? (ÀÅÐõ ÈÉÐÜ ÎàÓð) 9 Ë÷ÐÜÐ× À?ÐË Ñ?Ñ?×áÄé.

top

DeflateFilterNote Ñ?ÍÓÎþ

ÌÃÈý:ÎàÓðÇ?ÐË ÇÞÁçÏÅ ÁòÇß×áÄé
É?É:DeflateFilterNote [type] notename
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Extension
È?Åò:mod_deflate
Ñ?Ï?:typeÐÊ ÎÖÖÔÔÅ 2.0.4 ÊÞÕÝ

DeflateFilterNote Ñ?ÍÓÎþÄÒ ÏôÓËÐ× ÎàÓðÇ?ÐË ÇÞÁçÏÅ ÁòÇß×ßÄÒ ÁòØ?È? Ñ?Ñ?×áÄé. ÁòØ? ÐÜÈ?ÐÊ Ñ?ÍÓÎþÇÞ Ñ?Ñ?×á À?ÐÜÄé. ÕûÀøÈ? Ð?×è Ñ?Áé ÇÞÁçÏÅÌ- ÁòØ?È? Ë÷Ïû×â Ì? ÐæÄé.

ÏÉÑ?

DeflateFilterNote ratio

LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
CustomLog logs/deflate_log deflate

ÇÞÁçÏÅÌ- Ä? Ñ?Ø?×á À?ÐË ÓïÓò×ßÇÑÈù type ÎÖÁäÈåÖ?ÇÞ ÁòÇß×â ÐêÇñÈ? ÌÁÕÓ×áÄé. typeÄÒ ÄéÐÍÑï ×ßÃ?ÐÜÄé:

Input
×ÚÕÝ ÐäÇÒÍÊÖ?ÈÂÐ× ÉéÐÜÖ?Ì?È? Ð?Ðõ×áÄé.
Output
×ÚÕÝ ÓòÇÒÍÊÖ?ÈÂÐ× ÉéÐÜÖ?Ì?È? Ð?Ðõ×áÄé..
Ratio
ÎàÓðÇ?ÐË (output/input * 100) Ð?Ðõ×áÄé. type ÎÖÁäÈåÖ?È? ËÇ?×ßÈù Ë÷Ïû×ßÄÒ ÁòÊËÀ?ÐÜÄé.

ÁçÇÅÌ- ÐÜÇÈÀä ÇÞÁçÏÅ ÁòÇß×â Ì? ÐæÄé:

Ñ?Éà×á ÇÞÁç

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio

LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog logs/deflate_log deflate

Ò?Àý

top

DeflateMemLevel Ñ?ÍÓÎþ

ÌÃÈý:zlibÐÜ ÎàÓð×âÆ? Ë÷Ïû×ßÄÒ ÈîÈ?È?Ç?
É?É:DeflateMemLevel value
ÁòÊËÀ?:DeflateMemLevel 9
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Extension
È?Åò:mod_deflate

DeflateMemLevel Ñ?ÍÓÎþÄÒ zlibÐÜ ÎàÓð×âÆ? Î?ÈÆÈÈÕ- ÈîÈ?È?È? Ë÷Ïû×âÑ? ÀñÑ?×áÄé. (1À? 9 Ë÷ÐÜÐ× À?)

top

DeflateWindowSize Ñ?ÍÓÎþ

ÌÃÈý:Zlib ÎàÓð window size
É?É:DeflateWindowSize value
ÁòÊËÀ?:DeflateWindowSize 15
Ë÷ÏûÐõÌâ:ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ?
Ë?ÕÒ:Extension
È?Åò:mod_deflate

DeflateWindowSize Ñ?ÍÓÎþÄÒ zlib ÎàÓð window sizeÈ? (1À? 15 Ë÷ÐÜÐ× À?) Ñ?Ñ?×áÄé. ÐßÉíÐ?ÐÈÇÞ window sizeÀÅ Õ?Ì?Çß ÎàÓðÇ?ÐÜ Ñ?ÀÅ×áÄé.

ÀÅÄÙ×á Î?Îþ:  en  |  ja  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.