1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
|
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>mod_deflate - Apache HTTP Server</title>
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
<body>
<div id="page-header">
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p>
<p class="apache">Apache HTTP Server Version 2.0</p>
<img alt="" src="../images/feather.gif" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">���</a></div>
<div id="page-content">
<div id="preamble"><h1>����ġ ��� mod_deflate</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="../en/mod/mod_deflate.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_deflate.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_deflate.html" title="Korean"> ko </a></p>
</div>
<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>������ Ŭ���̾�Ʈ�� ������ ���� �����Ѵ�</td></tr>
<tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>deflate_module</td></tr>
<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_deflate.c</td></tr></table>
<h3>���</h3>
<p><code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> ����� ������ ����� ��Ʈ������
Ŭ���̾�Ʈ�� ������ ���� �����ϴ� <code>DEFLATE</code> �������
�����Ѵ�.</p>
</div>
<div id="quickview"><h3 class="directives">���þ��</h3>
<ul id="toc">
<li><img alt="" src="../images/down.gif" /> <a href="#deflatebuffersize">DeflateBufferSize</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#deflatecompressionlevel">DeflateCompressionLevel</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#deflatefilternote">DeflateFilterNote</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#deflatememlevel">DeflateMemLevel</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#deflatewindowsize">DeflateWindowSize</a></li>
</ul>
<h3>����</h3>
<ul id="topics">
<li><img alt="" src="../images/down.gif" /> <a href="#recommended">�����ϴ� ����</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#enable">�����ϱ�</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#proxies">���Ͻ� ���� �ٷ��</a></li>
</ul><h3>����</h3>
<ul class="seealso">
<li><a href="../filter.html">����</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="recommended" id="recommended">�����ϴ� ����</a></h2>
<p>���� ����� ���� �ߺ� �����̴�.</p>
<div class="example"><h3>�Ϻ� type�� ����</h3><p><code>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</code></p></div>
<p>�Ʒ� ������ ����Ͽ����� ���� �����ϴ�. ������ ������
������ �� ����϶�.</p>
<div class="example"><h3>�̹����� ������ ��� ���� ����</h3><p><code>
<Location /><br />
<span class="indent">
# ���� �߰��Ѵ�<br />
SetOutputFilter DEFLATE<br />
<br />
# Netscape 4.x�� ������ �ִ�...<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
<br />
# Netscape 4.06-4.08�� �� ������ �ִ�<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
<br />
# MSIE�� Netscape��� �ڽ��� �˸�����, ������ ����<br />
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
<br />
# ����: ����ġ 2.0.48���� mod_setenvif�� ��������<br />
# ���� ����ǥ������ �������� �ʴ´�. ���ϴ� ȿ����<br />
# ������� ������ ���� �����Ͽ� ����Ѵ�:<br />
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html<br />
<br />
# �̹����� �������� �ʴ´�<br />
SetEnvIfNoCase Request_URI \<br />
<span class="indent">
\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
</span>
<br />
# ���Ͻð� �߸��� ������ ���������ʵ��� �Ѵ�<br />
Header append Vary User-Agent env=!dont-vary<br />
</span>
</Location>
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="enable" id="enable">�����ϱ�</a></h2>
<h3><a name="output" id="output">��� ����</a></h3>
<p><code>DEFLATE</code> <a href="../filter.html">����</a>��
������ �Ѵ�. ���� ���þ�� ���þ �ִ� ��ġ�� ������
�����Ѵ�:</p>
<div class="example"><p><code>
SetOutputFilter DEFLATE
</code></p></div>
<p>��� ������ �����ϸ� ó������ ���ϴ� �������� �ֱ����
html ���ϸ��� �����ϱ����� (�Ʒ� ����)
<code>gzip-only-text/html</code>�� <code>1</code>�� ����������
��. �̸� <em><code>1</code>�� �ƴ� ������</em> �����ϸ�
�����Ѵ�.</p>
<p>���� Ư���� MIME type�� �����Ϸ��� <code class="directive"><a href="../mod/core.html#addoutputfilterbytype">AddOutputFilterByType</a></code> ���þ ����Ѵ�.
���� ������ html ���ϸ��� �����Ѵ�:</p>
<div class="example"><p><code>
<Directory "/your-server-root/manual"><br />
<span class="indent">
AddOutputFilterByType DEFLATE text/html<br />
</span>
</Directory>
</code></p></div>
<p>������ ������ ó������ ���ϴ� ���������Դ� ���������ʰ�
���������� <code class="directive"><a href="../mod/mod_setenvif.html#browsermatch">BrowserMatch</a></code> ���þ <code>no-gzip</code>��
�����Ѵ�. ������ ����� ������� <code>no-gzip</code>��
<code>gzip-only-text/html</code>�� ���� ����� �� �ִ�.
�� ��� ���ڰ� ���ڸ� �����Ѵ�. �� ���� <a href="#recommended">���� ����</a> �Ϻθ� ���캸��:</p>
<div class="example"><p><code>
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</code></p></div>
<p>���� <code>User-Agent</code> ���ڿ��� ���� Netscape
Navigator ���� 4.x���� �˻��Ѵ�. �� ������ <code>text/html</code>��
�ƴ� type�� ������ ó������ ���Ѵ�. ���� 4.06, 4.07, 4.08��
html ���� ������ ó���ϴ´뵵 ������ �ִ�. ���� �츮��
�� ��� deflate ���� ������ ��������ʴ´�.</p>
<p>����° <code class="directive"><a href="../mod/mod_setenvif.html#browsermatch">BrowserMatch</a></code>
���þ�� Microsoft Internet Explorer�� �ڽ��� "Mozilla/4"��
�˸����� ����� ��û�� ó���� �� �ֱ���� user agent
������ �����Ѵ�. <code>User-Agent</code> ������� "MSIE"
(<code>\b</code>�� "�ܾ� ���"�� ���Ѵ�) ���ڿ��� �߰��ϸ�
�տ��� ������ ������ Ǭ��.</p>
<div class="note"><h3>����</h3>
<code>DEFLATE</code> ���ʹ� �� PHP�� SSI�� ���� RESOURCE
���� �ڿ� ����. ��, ���� ������û(subrequest)�� ������
���� �ʴ´�.
</div>
<h3><a name="input" id="input">�Է� ����Ǯ��</a></h3>
<p><code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> ����� gzip���� ����� ��û
������ Ǫ�� ���͵� �����Ѵ�. �� ����� ����Ϸ��� ������
���� <code class="directive"><a href="../mod/core.html#setinputfilter">SetInputFilter</a></code>��
<code class="directive"><a href="../mod/mod_mime.html#addinputfilter">AddInputFilter</a></code>��
����Ͽ� �Է����ͼ����� <code>DEFLATE</code> ����
�߰��Ѵ�.</p>
<div class="example"><p><code>
<Location /dav-area><br />
<span class="indent">
SetInputFilter DEFLATE<br />
</span>
</Location>
</code></p></div>
<p>��û�� <code>Content-Encoding: gzip</code> ����� �ִٸ�
�ڵ����� ����� ������ Ǭ��. gzip ��û�� �� �� �ִ�
�������� �幰��. ���� � <a href="http://www.webdav.org">WebDAV</a> Ŭ���̾�Ʈ�� ����
Ư���� ���α��� ��û ������ �����Ѵ�.</p>
<div class="warning"><h3>Content-Length�� ���� ����</h3>
<p>��û ������ ���� ���캻�ٸ�, <em><code>Content-Length</code>
����� ��������!</em> Content-Length ����� Ŭ���̾�Ʈ��
���� ������ ��������, ������ Ǭ ����� ����Ʈ����
<em>�ƴϴ�</em>.</p>
</div>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="proxies" id="proxies">���Ͻ� ���� �ٷ��</a></h2>
<p><code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> ����� ���Ͻð� �ڽ��� ij����
������ ������ <code>Accept-Encoding</code> ��û ����� ����
Ŭ���̾�Ʈ���Ը� �������� <code>Vary:
Accept-Encoding</code> HTTP ���� ����� �߰��Ѵ�. ����
����� ������ ������ �� ���� Ŭ���̾�Ʈ�� ����� ������
�������ʵ��� �Ѵ�.</p>
<p>���� ���, <code>User-Agent</code> ��� � ���� Ư����
���� ������ ����Ѵٸ�, ���Ͻÿ��� �̷��� ������ �˷��ֱ�����
���� <code>Vary</code> ����� �߰��ؾ� �Ѵ�. ���� ���,
������ <code>User-Agent</code>�� ���� <code>DEFLATE</code>
���� �߰��Ѵٸ� ������ ����Ѵ�:</p>
<div class="example"><p><code>
Header append Vary User-Agent
</code></p></div>
<p>��û ������� �ٸ� ������ (<em>���� ���</em>, HTTP ����)
���� ���� ���ΰ� �����ȴٸ�, <code>Vary</code> �������
<code>*</code>�� �����ؾ� �Ѵ�. ���� ǥ���� ������ ���Ͻô�
ij���� ���� �ʰ� �ȴ�.</p>
<div class="example"><h3>����</h3><p><code>
Header set Vary *
</code></p></div>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DeflateBufferSize" id="DeflateBufferSize">DeflateBufferSize</a> <a name="deflatebuffersize" id="deflatebuffersize">���þ�</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>zlib�� �ѹ��� ������ ũ��</td></tr>
<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>DeflateBufferSize <var>value</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">�⺻��:</a></th><td><code>DeflateBufferSize 8096</code></td></tr>
<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ</td></tr>
<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_deflate</td></tr>
</table>
<p><code class="directive">DeflateBufferSize</code> ���þ�� zlib��
�ѹ��� ������ ����Ʈ���� �����Ѵ�.</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DeflateCompressionLevel" id="DeflateCompressionLevel">DeflateCompressionLevel</a> <a name="deflatecompressionlevel" id="deflatecompressionlevel">���þ�</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>����� ������� �����ϴ°�</td></tr>
<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>DeflateCompressionLevel <var>value</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">�⺻��:</a></th><td><code>Zlib's default</code></td></tr>
<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ</td></tr>
<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_deflate</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">����:</a></th><td>����ġ 2.0.45 ����</td></tr>
</table>
<p><code class="directive">DeflateCompressionLevel</code> ���þ��
����� ��������� �����Ѵ�. ���� Ŭ���� ������� ����������,
CPU�� �� ���� ����Ѵ�.</p>
<p>(���� �� ����) 1�� (���� ���� ����) 9 ������ ���� �����Ѵ�.</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DeflateFilterNote" id="DeflateFilterNote">DeflateFilterNote</a> <a name="deflatefilternote" id="deflatefilternote">���þ�</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>������� �α� ����Ѵ�</td></tr>
<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>DeflateFilterNote [<var>type</var>] <var>notename</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ</td></tr>
<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_deflate</td></tr>
<tr><th><a href="directive-dict.html#Compatibility">����:</a></th><td><var>type</var>�� ����ġ 2.0.45 ����</td></tr>
</table>
<p><code class="directive">DeflateFilterNote</code> ���þ�� ��û��
������� �α� ����ϴ� ��ȣ�� �����Ѵ�. ��ȣ �̸��� ���þ��
������ ���̴�. ��踦 ���� <a href="../logs.html#accesslog">����
�α�</a>���� ��ȣ�� ����� �� �ִ�.</p>
<div class="example"><h3>����</h3><p><code>
DeflateFilterNote ratio<br />
<br />
LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate<br />
CustomLog logs/deflate_log deflate
</code></p></div>
<p>�α��� �� ��Ȯ�� ���� �����Ϸ��� <var>type</var> �ƱԸ�Ʈ��
����� �ڷḦ �����Ѵ�. <var>type</var>�� ������ �ϳ��̴�:</p>
<dl>
<dt><code>Input</code></dt>
<dd>���� �Է½�Ʈ���� ����Ʈ���� �����Ѵ�.</dd>
<dt><code>Output</code></dt>
<dd>���� ��½�Ʈ���� ����Ʈ���� �����Ѵ�..</dd>
<dt><code>Ratio</code></dt>
<dd>������� (<code>output/input * 100</code>) �����Ѵ�.
<var>type</var> �ƱԸ�Ʈ�� �����ϸ� ����ϴ� �⺻���̴�.</dd>
</dl>
<p>���� �̷��� �α� ����� �� �ִ�:</p>
<div class="example"><h3>������ �α�</h3><p><code>
DeflateFilterNote Input instream<br />
DeflateFilterNote Output outstream<br />
DeflateFilterNote Ratio ratio<br />
<br />
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate<br />
CustomLog logs/deflate_log deflate
</code></p></div>
<h3>����</h3>
<ul>
<li><code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code></li>
</ul>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DeflateMemLevel" id="DeflateMemLevel">DeflateMemLevel</a> <a name="deflatememlevel" id="deflatememlevel">���þ�</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>zlib�� �����Ҷ� ����ϴ� ��</td></tr>
<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>DeflateMemLevel <var>value</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">�⺻��:</a></th><td><code>DeflateMemLevel 9</code></td></tr>
<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ</td></tr>
<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_deflate</td></tr>
</table>
<p><code class="directive">DeflateMemLevel</code> ���þ�� zlib��
�����Ҷ� ��ŭ �� ������� �����Ѵ�. (1�� 9 ������
��)</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="DeflateWindowSize" id="DeflateWindowSize">DeflateWindowSize</a> <a name="deflatewindowsize" id="deflatewindowsize">���þ�</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>Zlib ���� window size</td></tr>
<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>DeflateWindowSize <var>value</var></code></td></tr>
<tr><th><a href="directive-dict.html#Default">�⺻��:</a></th><td><code>DeflateWindowSize 15</code></td></tr>
<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ</td></tr>
<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr>
<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_deflate</td></tr>
</table>
<p><code class="directive">DeflateWindowSize</code> ���þ�� zlib
���� window size�� (1�� 15 ������ ��) �����Ѵ�. �Ϲ�������
window size�� Ŭ���� ������� �����Ѵ�.</p>
</div>
</div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="../en/mod/mod_deflate.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="../ja/mod/mod_deflate.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_deflate.html" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Copyright 2009 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">���</a> | <a href="../mod/directives.html">���þ��</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">���</a> | <a href="../sitemap.html">����Ʈ��</a></p></div>
</body></html>
|