Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: 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 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï |
Apache HTTP Server Version 2.2
ÌÃÈý: | ÃËÏûÐË Õ?Æ?ÐÜÎ?Ö?ÇÞ ÊÈÃËÁò Ð?ÏÅ ÎàÓð×áÄé |
---|---|
Ë?ÕÒ: | Extension |
È?ÅòÈý: | deflate_module |
ÌâÍÊÖÔÐß: | mod_deflate.c |
mod_deflate
È?ÅòÐÊ Ì-É?Ð× ÓòÇÒÐË ÃçÖ?Ï?ÐÈÇÞ
Õ?Æ?ÐÜÎ?Ö?ÏÅ ÊÈÃËÁò Ð?ÏÅ ÎàÓð×ßÄÒ DEFLATE
ÓòÇÒ×ÚÕÝÈ?
Ñ?À?×áÄé.
Áî×á Ë÷Æ?ÐË Ð?×á ÀïÊË ÌÃÑ?ÐÜÄé.
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>
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 ×üÄ?ÄÒ Õ?Æ?ÐÜÎ?Ö?ÀÅ
ÊÈÃÍ ÃËÏûÐ× ÁöÐÜÐÜÑ?, ÎàÓðÐË ×? ÀñÀ?Ð× ÉéÐÜÖ?Ì?ÀÅ
ÎÖÄßÄé.
mod_deflate
È?ÅòÐÊ ×ÑÇßÍÓÀÅ ÐêÍÕÐÜ ÔÃÍ?×á
ÐÐÄôÐË Ð?Ð×á Accept-Encoding
ÏôÓË ×üÄ?È? ÊÈÃÍ
Õ?Æ?ÐÜÎ?Ö?ÏÅÀäÈÈ ÊÈÃËÅÅÇß Vary:
Accept-Encoding
HTTP ÐÐÄô ×üÄ?È? ÓïÀÅ×áÄé. ÁçÇÅÌ-
ÎàÓðÅØ ÃËÏûÐË ÐÜ×è×â Ì? Î?ÄÒ Õ?Æ?ÐÜÎ?Ö?ÏÅ ÎàÓðÅØ ÃËÏûÐË
ÊÈÃËÑ?ÎÚÅÅÇß ×áÄé.
ÏÉÈ? ÅùÎþ, User-Agent
×üÄ? ÅþÏÅ Å?Æ? Ö?ÊÀØ?
×ÚÕÝ Ð?ÏûÐË ÓûÌâ×áÄéÈù, ×ÑÇßÍÓÏÅÀä ÐÜÇ?×á Ñ?×áÐË ÎÛÇÑÑæÁòÐ?×è
Ñ?Ñ? Vary
×üÄ?ÏÅ ÓïÀÅ×èÎï ×áÄé. ÏÉÈ? ÅùÎþ,
ÌÃÑ?ÐÜ User-Agent
ÏÅ Å?Æ? DEFLATE
×ÚÕÝÈ? ÓïÀÅ×áÄéÈù ÄéÐÍÐË Ë÷Ïû×áÄé:
Header append Vary User-Agent
ÏôÓË ×üÄ?ÏìÐ× ÄéÈ? Ñ?ÊÈÏÅ (ÏÉÈ? ÅùÎþ, HTTP É?Ð?)
Å?Æ? ÎàÓð Ï?ÊÞÀÅ ÀñÑ?ÅØÄéÈù, Vary
×üÄ?À?ÐË
*
ÇÞ ÌÃÑ?×èÎï ×áÄé. ÁçÇ?Èù ×?ÑèÐË Å?È?ÄÒ ×ÑÇßÍÓÄÒ
ÔÃÍ?È? ×ßÑ? ÎÚÀä ÅØÄé.
Header set Vary *
ÌÃÈý: | zlibÐÜ ×áÉ?ÏÅ ÎàÓð×â Õ?Áò |
---|---|
É?É: | DeflateBufferSize value |
ÁòÊËÀ?: | DeflateBufferSize 8096 |
Ë÷ÏûÐõÌâ: | ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ? |
Ë?ÕÒ: | Extension |
È?Åò: | mod_deflate |
DeflateBufferSize
Ñ?ÍÓÎþÄÒ zlibÐÜ
×áÉ?ÏÅ ÎàÓð×â ÉéÐÜÖ?Ì?È? Ñ?Ñ?×áÄé.
ÌÃÈý: | ÓòÇÒÐË ÎþÄÐÑ?ÅÅ ÎàÓð×ßÄÒÀÅ |
---|---|
É?É: | DeflateCompressionLevel value |
ÁòÊËÀ?: | Zlib's default |
Ë÷ÏûÐõÌâ: | ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ? |
Ë?ÕÒ: | Extension |
È?Åò: | mod_deflate |
Ñ?Ï?: | ÎÖÖÔÔÅ 2.0.45 ÊÞÕÝ |
DeflateCompressionLevel
Ñ?ÍÓÎþÄÒ
Ë÷Ïû×â ÎàÓðÌ?ÑèÐË ÌÁÕÓ×áÄé. À?ÐÜ Õ?Ì?Çß ÎàÓðÇ?ÐÜ Ñ?ÀÅ×ßÑ?ÈÈ,
CPUÈ? Ä? ÈÉÐÜ Ë÷Ïû×áÄé.
(ÀÅÐõ Ä? ÎàÓð) 1À? (ÀÅÐõ ÈÉÐÜ ÎàÓð) 9 Ë÷ÐÜÐ× À?ÐË Ñ?Ñ?×áÄé.
ÌÃÈý: | ÎàÓðÇ?ÐË ÇÞÁçÏÅ ÁòÇß×áÄé |
---|---|
É?É: | 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
ÌÃÈý: | zlibÐÜ ÎàÓð×âÆ? Ë÷Ïû×ßÄÒ ÈîÈ?È?Ç? |
---|---|
É?É: | DeflateMemLevel value |
ÁòÊËÀ?: | DeflateMemLevel 9 |
Ë÷ÏûÐõÌâ: | ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ? |
Ë?ÕÒ: | Extension |
È?Åò: | mod_deflate |
DeflateMemLevel
Ñ?ÍÓÎþÄÒ zlibÐÜ
ÎàÓð×âÆ? Î?ÈÆÈÈÕ- ÈîÈ?È?È? Ë÷Ïû×âÑ? ÀñÑ?×áÄé. (1À? 9 Ë÷ÐÜÐ×
À?)
ÌÃÈý: | Zlib ÎàÓð window size |
---|---|
É?É: | DeflateWindowSize value |
ÁòÊËÀ?: | DeflateWindowSize 15 |
Ë÷ÏûÐõÌâ: | ÑæÌ-É?ÌÃÑ?, ÀÅË?Ø?ÍÊÖ? |
Ë?ÕÒ: | Extension |
È?Åò: | mod_deflate |
DeflateWindowSize
Ñ?ÍÓÎþÄÒ zlib
ÎàÓð window sizeÈ? (1À? 15 Ë÷ÐÜÐ× À?) Ñ?Ñ?×áÄé. ÐßÉíÐ?ÐÈÇÞ
window sizeÀÅ Õ?Ì?Çß ÎàÓðÇ?ÐÜ Ñ?ÀÅ×áÄé.