mod_deflate.xml.ko revision 71fccc298df6a1540d408151a26aa22beed55d0b
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 1.22 (outdated: 1.24) -->
<!--
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modulesynopsis metafile="mod_deflate.xml.meta">
<name>mod_deflate</name>
<description>������ Ŭ���̾�Ʈ�� ������ �� �����Ѵ�</description>
<status>Extension</status>
<sourcefile>mod_deflate.c</sourcefile>
<identifier>deflate_module</identifier>
<summary>
<p><module>mod_deflate</module> ����� ������ ����� ��Ʈ������
Ŭ���̾�Ʈ�� ������ �� �����ϴ� <code>DEFLATE</code> ������͸�
�����Ѵ�.</p>
</summary>
<seealso><a href="/filter.html">����</a></seealso>
<section id="recommended"><title>�ߺ� ����</title>
<p>���� ����� ���� �ߺ� �����̴�.</p>
<example><title>�Ϻ� type�� ����</title>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
</example>
<p>�Ʒ� ������ ����Ͽ����� �׷��� �����ϴ�. ������ ������
������ �� ����϶�.</p>
<example><title>�̹����� ������ ��� ���� ����</title>
&lt;Location /&gt;<br />
<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 />
<indent>
\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
</indent>
<br />
# ���Ͻð� �߸�� ������ ��������ʵ��� �Ѵ�<br />
Header append Vary User-Agent env=!dont-vary<br />
</indent>
&lt;/Location&gt;
</example>
</section>
<section id="enable"><title>�����ϱ�</title>
<section id="output"><title>��� ����</title>
<p><code>DEFLATE</code> <a href="/filter.html">����</a>��
������ �Ѵ�. ���� ���þ�� ���þ �ִ� ��ġ�� ������
�����Ѵ�:</p>
<example>
SetOutputFilter DEFLATE
</example>
<p>��� ������ �����ϸ� ó������ ���ϴ� ������ �ֱ⶧����
html ���ϸ��� �����ϱ����� (�Ʒ� ���)
<code>gzip-only-text/html</code>�� <code>1</code>�� ����������
�𸥴�. �̸� <em><code>1</code>�� �ƴ� ������</em> �����ϸ�
�����Ѵ�.</p>
<p>���� Ư���� MIME type�� �����Ϸ��� <directive module="core"
>AddOutputFilterByType</directive> ���þ ����Ѵ�.
���� ������ html ���ϸ��� �����Ѵ�:</p>
<example>
&lt;Directory "/your-server-root/manual"&gt;<br />
<indent>
AddOutputFilterByType DEFLATE text/html<br />
</indent>
&lt;/Directory&gt;
</example>
<p>������ ������ ó������ ���ϴ� ������Դ� ���������ʰ�
���������� <directive module="mod_setenvif"
>BrowserMatch</directive> ���þ <code>no-gzip</code>��
�����Ѵ�. ������ ��� ������� <code>no-gzip</code>��
<code>gzip-only-text/html</code>�� ���� ����� �� �ִ�.
�� ��� ���ڰ� ���ڸ� �����Ѵ�. �� ���� <a
href="#recommended">���� ����</a> �Ϻθ� ���캸��:</p>
<example>
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</example>
<p>���� <code>User-Agent</code> ���ڿ��� ���� Netscape
Navigator ���� 4.x���� �˻��Ѵ�. �� ������ <code>text/html</code>��
�ƴ� type�� ������ ó������ ���Ѵ�. ���� 4.06, 4.07, 4.08��
html ���� ������ ó���ϴ´뵵 ������ �ִ�. �׷��� �츮��
�� ��� deflate ���͸� ������ ��������ʴ´�.</p>
<p>����° <directive module="mod_setenvif">BrowserMatch</directive>
���þ�� Microsoft Internet Explorer�� �ڽ��� "Mozilla/4"��
�˸����� ����� ��û�� ó���� �� �ֱ⶧���� user agent
������ �����Ѵ�. <code>User-Agent</code> ������� "MSIE"
(<code>\b</code>�� "�ܾ� ���"�� ���Ѵ�) ���ڿ��� �߰��ϸ�
�տ��� ������ ������ Ǭ��.</p>
<note><title>����</title>
<code>DEFLATE</code> ���ʹ� �׻� PHP�� SSI�� ���� RESOURCE
���� �ڿ� ����. ��, ���� ������û(subrequest)�� ������
���� �ʴ´�.
</note>
</section>
<section id="input"><title>�Է� ����Ǯ��</title>
<p><module>mod_deflate</module> ����� ��û�� gzip �����
������ Ǫ�� ���͵� �����Ѵ�. �� ����� ����Ϸ��� ������
���� <directive module="core">SetInputFilter</directive>��
<directive module="mod_mime">AddInputFilter</directive>��
����Ͽ� �Է����ͼ� <code>DEFLATE</code> ���͸�
�߰��ؾ��Ѵ�:</p>
<example>
&lt;Location /dav-area&gt;<br />
<indent>
SetInputFilter DEFLATE<br />
</indent>
&lt;/Location&gt;
</example>
<p>��û�� <code>Content-Encoding: gzip</code> ����� �ִٸ�
�ڵ����� ����� ������ Ǭ��. gzip ��û�� �� �� �ִ�
������� �幰��. �׷��� � <a
href="http://www.webdav.org">WebDAV</a> Ŭ���̾�Ʈ�� ����
Ư���� ���α׷��� ��û ������ �����Ѵ�.</p>
<note type="warning"><title>Content-Length�� ���� ����</title>
<p>��û ������ ���� ���캻�ٸ�, <em><code>Content-Length</code>
����� ��������!</em> Content-Length ����� Ŭ���̾�Ʈ��
���� ������ ��������, ������ Ǭ ����� ����Ʈ����
<em>�ƴϴ�</em>.</p>
</note>
</section>
</section>
<section id="proxies"><title>���Ͻ� ���� �ٷ��</title>
<p><module>mod_deflate</module> ����� ���Ͻð� �ڽ��� 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>
<example>
Header append Vary User-Agent
</example>
<p>��û ������� �ٸ� ������ (<em>���� ���</em>, HTTP ����)
��� ���� ���ΰ� �����ȴٸ�, <code>Vary</code> �������
<code>*</code>�� �����ؾ� �Ѵ�. �׷��� ǥ���� ��� ���Ͻô�
ij���� ���� �ʰ� �ȴ�.</p>
<example><title>����</title>
Header set Vary *
</example>
</section>
<directivesynopsis>
<name>DeflateFilterNote</name>
<description>������� �α׿� ����Ѵ�</description>
<syntax>DeflateFilterNote [<var>type</var>] <var>notename</var></syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<compatibility><var>type</var> is available since Apache 2.0.45</compatibility>
<usage>
<p><directive>DeflateFilterNote</directive> ���þ�� ��û��
������� �α׿� ����ϴ� ��ȣ�� �����Ѵ�. ��ȣ �̸��� ���þ��
������ ���̴�. ��踦 ���� <a href="/logs.html#accesslog">����
�α�</a>���� ��ȣ�� ����� �� �ִ�.</p>
<example><title>����</title>
DeflateFilterNote ratio<br />
<br />
LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate<br />
CustomLog logs/deflate_log deflate
</example>
<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>
<example><title>������ �α�</title>
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
</example>
</usage>
<seealso><module>mod_log_config</module></seealso>
</directivesynopsis>
<directivesynopsis>
<name>DeflateBufferSize</name>
<description>zlib�� �ѹ� ������ ũ��</description>
<syntax>DeflateBufferSize <var>value</var></syntax>
<default>DeflateBufferSize 8096</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p><directive>DeflateBufferSize</directive> ���þ�� zlib��
�ѹ� ������ ����Ʈ���� �����Ѵ�.</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>DeflateWindowSize</name>
<description>Zlib ���� window size</description>
<syntax>DeflateWindowSize <var>value</var></syntax>
<default>DeflateWindowSize 15</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p><directive>DeflateWindowSize</directive> ���þ�� zlib
���� window size�� (1�� 15 ������ ��) �����Ѵ�. �Ϲ�������
window size�� Ŭ���� ������� �����Ѵ�.</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>DeflateMemLevel</name>
<description>zlib�� �����Ҷ� ����ϴ� �޸𸮷�</description>
<syntax>DeflateMemLevel <var>value</var></syntax>
<default>DeflateMemLevel 9</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p><directive>DeflateMemLevel</directive> ���þ�� zlib��
�����Ҷ� �󸶸�ŭ �޸𸮸� ������� �����Ѵ�. (1�� 9 ������
��)</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>DeflateCompressionLevel</name>
<description>����� ������� �����ϴ°�</description>
<syntax>DeflateCompressionLevel <var>value</var></syntax>
<default>Zlib's default</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<compatibility>This directive is available since Apache 2.0.45</compatibility>
<usage>
<p><directive>DeflateCompressionLevel</directive> ���þ��
����� ��������� �����Ѵ�. ���� Ŭ���� ������� ����������,
CPU�� �� ���� ����Ѵ�.</p>
<p>(���� �� ����) 1�� (���� ���� ����) 9 ������ ���� �����Ѵ�.</p>
</usage>
</directivesynopsis>
</modulesynopsis>