mod_ext_filter.xml.ko revision 8559a67073808d84d85bb5dd552d4247caafe709
<?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: 105989:1128732 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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_ext_filter.xml.meta">
<name>mod_ext_filter</name>
<description>���� ������ �ܺ� ���α׷����� ó���� �� Ŭ���̾�Ʈ��
������</description>
<status>Extension</status>
<sourcefile>mod_ext_filter.c</sourcefile>
<identifier>ext_filter_module</identifier>
<summary>
<p><module>mod_ext_filter</module>�� ����ϸ� �����ϰ� �ͼ���
������� <a href="/filter.html">����</a>�� ���� �� �ִ�.
ǥ���Է¿��� �а� ǥ����¿� ���� ���α׷�(��, ���н���
���� ��ɾ�)�� ����ġ ���ͷ� ����� �� �ִ�. �̷� ���ʹ�
����ġ API�� �������� ����ġ ���� ���μ��� �ȿ��� ����Ǵ�
���Ϳ� ���� �ſ� ��������, ������ ���� ������ �ִ�:</p>
<ul>
<li>���α׷��� ���� �ſ� �����ϴ�</li>
<li>���α׷��� ǥ���Է¿��� �а� ǥ����¿� �� ���� �ִٸ�
� ���α׷���/��ũ��Ʈ ���� ����� �� �ִ�</li>
<li>�̹� �ִ� ���α׷��� �������� ����ġ ���ͷ� �����
�� �ִ�</li>
</ul>
<p>���� ����ϱ⿡�� ������ ����������,
<module>mod_ext_filter</module>�� ����Ͽ� ���͸� ���� ����
�� �ִ�.</p>
</summary>
<seealso><a href="/filter.html">����</a></seealso>
<section id="examples"><title>����</title>
<section><title>�ٸ� type�� ������ HTML�� �����</title>
<example>
# mod_ext_filter ���þ ������<br />
# �ܺ� ���α׷� /usr/bin/enscript�� ����Ͽ�<br />
# �������ϰ� text/c ������ HTML�� ����� �����<br />
# type�� text/html�� �����ϴ� ���͸� �����Ѵ�<br />
ExtFilterDefine c-to-html mode=output \<br />
<indent>
intype=text/c outtype=text/html \<br />
cmd="/usr/bin/enscript --color -W html -Ec -o - -"<br />
</indent>
<br />
&lt;Directory "/export/home/trawick/apacheinst/htdocs/c"&gt;<br />
<indent>
# ��¿� ���ο� ���͸� �����ϴ� core ���þ�<br />
SetOutputFilter c-to-html<br />
<br />
# .c ������ type�� text/c�� ����� mod_mime<br />
# ���þ�<br />
AddType text/c .c<br />
<br />
# ����� ������ ������ ��û���� ���� ������<br />
# �˷��ִ� �α׹��� ����ϴ� mod_ext_filter<br />
# ���þ�<br />
ExtFilterOptions DebugLevel=1<br />
</indent>
&lt;/Directory&gt;
</example>
</section>
<section><title>content ���ڵ� ���� �����ϱ�</title>
<p>Note: �Ʒ� gzip ������ ���� ������ ���� �� ���̴�.
���� ���񽺿� ����Ϸ��� <module>mod_deflate</module>��
����ϱ� �ٶ���.</p>
<example>
# �ܺ� ���͸� �����ϴ� mod_ext_filter ���þ�<br />
ExtFilterDefine gzip mode=output cmd=/bin/gzip<br />
<br />
&lt;Location /gzipped&gt;<br />
<indent>
# ����Ҷ� gzip ���͸� �����ϴ� core ���þ�<br />
SetOutputFilter gzip<br />
<br />
# "Content-Encoding: gzip" ����� �߰��ϴ�<br />
# mod_header ���þ�<br />
Header set Content-Encoding gzip<br />
</indent>
&lt;/Location&gt;
</example>
</section>
<section><title>������ ������ �ϱ�</title>
<example>
# cat���� ��� ������ ����ϴ� ���͸� �����ϴ�<br />
# mod_ext_filter ���þ�; cat�� �ƹ��͵� ��������<br />
# �ʴ´�; ���� ó����θ� ��� �Ͽ� �ڿ��� �� �Ҹ��Ѵ�<br />
ExtFilterDefine slowdown mode=output cmd=/bin/cat \<br />
<indent>
preservescontentlength<br />
</indent>
<br />
&lt;Location /&gt;<br />
<indent>
# ����Ҷ� slowdown ���͸� ������ �����ϴ� core ���þ�<br />
#<br />
SetOutputFilter slowdown;slowdown;slowdown<br />
</indent>
&lt;/Location&gt;
</example>
</section>
<section><title>sed�� ����Ͽ� ���信�� ���� ��ü�ϱ�</title>
<example>
# ���信�� ���� ��ü�ϴ� ���͸� �����ϴ�<br />
# mod_ext_filter ���þ�<br />
#<br />
ExtFilterDefine fixtext mode=output intype=text/html \<br />
<indent>
cmd="/bin/sed s/verdana/arial/g"<br />
</indent>
<br />
&lt;Location /&gt;<br />
<indent>
# ����Ҷ� fixtext ���͸� �����ϴ� core ���þ�<br />
SetOutputFilter fixtext<br />
</indent>
&lt;/Location&gt;
</example>
</section>
<section><title>�ٸ� ���͸� �����ϱ�</title>
<example>
# ���� ������ �ִ� Ư�� Ŭ���̾�Ʈ(IP 192.168.1.31)��<br />
# ���� mod_deflate�� �а� ���� �ڷḦ �����Ѵ�.<br />
# �� ���ʹ� mod_deflate�� ������ �� �ڷḦ �����Ѵ�.<br />
ExtFilterDefine tracebefore \<br />
<indent>
cmd="/bin/tracefilter.pl /tmp/tracebefore" \<br />
EnableEnv=trace_this_client<br />
</indent>
<br />
# �� ���ʹ� mod_deflate���� ������ �ڷḦ �����Ѵ�.<br />
# ftype �Ķ���͸� ��������ʴ� ���, �⺻ ������<br />
# AP_FTYPE_RESOURCE�� ���� �� mod_deflate *����*<br />
# �д�. AP_FTYPE_CONTENT_SET ���� ���� ���� ���ڰ���<br />
# �����ϸ� mod_deflate ���Ŀ� �����Ѵ�.<br />
ExtFilterDefine traceafter \<br />
<indent>
cmd="/bin/tracefilter.pl /tmp/traceafter" \<br />
EnableEnv=trace_this_client ftype=21<br />
</indent>
<br />
&lt;Directory /usr/local/docs&gt;<br />
<indent>
SetEnvIf Remote_Addr 192.168.1.31 trace_this_client<br />
SetOutputFilter tracebefore;deflate;traceafter<br />
</indent>
&lt;/Directory&gt;
</example>
<example><title>������ �ڷḦ �����ϴ� �����̴�:</title>
#!/usr/local/bin/perl -w<br />
use strict;<br />
<br />
open(SAVE, "&gt;$ARGV[0]")<br />
<indent>
or die "can't open $ARGV[0]: $?";<br />
</indent>
<br />
while (&lt;STDIN&gt;) {<br />
<indent>
print SAVE $_;<br />
print $_;<br />
</indent>
}<br />
<br />
close(SAVE);
</example>
</section>
</section> <!-- /Examples -->
<directivesynopsis>
<name>ExtFilterDefine</name>
<description>�ܺ� ���͸� �����Ѵ�</description>
<syntax>ExtFilterDefine <var>filtername</var> <var>parameters</var></syntax>
<contextlist><context>server config</context></contextlist>
<usage>
<p><directive>ExtFilterDefine</directive> ���þ�� �ܺ�
������ ����� ������ ���α׷�, �ƱԸ�Ʈ�� �����Ѵ�.</p>
<p><var>filtername</var>�� ������ ���� �̸��� �����Ѵ�.
�� �̸��� SetOutputFilter ���þ�� ����Ѵ�. ����� ���
���͵鰣�� �̸��� ��ġ�� �ȵȴ�. <em>���� ���͵�� API��
���� �������� �ʴ´�. �׷��� ����ڴ� �̸��� ��ġ�� ������
���� ���Ѵ�.</em></p>
<p>������ �ܺ� ��ɾ�� �ٸ� ������ �����ϴ� ������ �ƱԸ�Ʈ��
� ��� ���͵� �����ϴ�. ��, <code>cmd=</code> �Ķ���ʹ�
�ݵ�� �ʿ��ϴ�. ����� �� �ִ� �Ķ���ʹ� ������ ����:</p>
<dl>
<dt><code>cmd=<var>cmdline</var></code></dt>
<dd><code>cmd=</code> Ű����� ������ �ܺ� ��ɾ �����Ѵ�.
���α׷��� �ڿ� �ƱԸ�Ʈ�� �ִٸ� ������� �ֵ��ǥ��
����� �Ѵ� (<em>���� ���</em>,
<code>cmd="<var>/bin/mypgm</var> <var>arg1</var>
<var>arg2</var>"</code>). ���� ��ġ���ʰ� ���� ���α׷���
�����ϱ⶧���� �Ϲ����� �� ���ǥ�� �ʿ���. ���α׷�
�ƱԸ�Ʈ���� ������� �����Ѵ�. ���α׷� �ƱԸ�Ʈ�� �����
�ִٸ� ��� �տ� �齽������ ����ؾ� �Ѵ�. �齽������
�ƱԸ�Ʈ�� �Ϻζ�� �齽������ �ι� ����ؾ� �Ѵ�. ���α׷���
�����Ҷ� ǥ�� CGI ȯ�溯���� �߰��� DOCUMENT_URI,
DOCUMENT_PATH_INFO, QUERY_STRING_UNESCAPED ������ �����Ѵ�.</dd>
<dt><code>mode=<var>mode</var></code></dt>
<dd>������ ó���ϴ� ���ʹ� (�⺻����) <code>mode=output</code>��
����Ѵ�. ��û�� ó���ϴ� ���ʹ� <code>mode=input</code>��
����Ѵ�. <code>mode=input</code>�� ����ġ 2.1�� �߰��Ǿ��.</dd>
<dt><code>intype=<var>imt</var></code></dt>
<dd>�� �Ķ���ʹ� ���ͷ� ó���� ������ ���ͳ� media
type(<em>��</em>, MIME type)�� �����Ѵ�. �⺻������ ���
������ ���ͷ� ó���Ѵ�. <code>intype=</code>�� �����ϸ�
�ٸ� type�� ������ ���ͷ� ó������ �ʴ´�.</dd>
<dt><code>outtype=<var>imt</var></code></dt>
<dd>�� �Ķ���ʹ� ���ͷ� ó���� ������ ���ͳ� media
type(<em>��</em>, MIME type)�� �����Ѵ�. ����ó�� �۾��߿�
���ͳ� media type�� �����Ҷ� �����ϴ�. �⺻������, ���ͳ�
media type�� ������ �ʴ´�.</dd>
<dt><code>PreservesContentLength</code></dt>
<dd><code>PreservesContentLength</code> Ű����� ���Ͱ�
content length�� �����ϵ��� �Ѵ�. ��κ��� ���Ͱ� content
length�� �����ϹǷ� �� Ű����� �⺻���� �ƴϴ�. ���Ͱ�
���̸� �����Ҷ��� �� Ű���带 ����ؾ� �Ѵ�.</dd>
<dt><code>ftype=<var>filtertype</var></code></dt>
<dd>�� �Ķ���ʹ� ���� ���� ���� ���ڰ��� �����Ѵ�.
��κ��� ��� �⺻���� AP_FTYPE_RESOURCE�� ����ϴ�.
���͸� �����ϴ� �� �ڿ����Ϳ� �޶���ϴ� ��� ��
�Ķ���Ͱ� �ʿ��ϴ�. ����� ���� �˷��� util_filter.h��
�ִ� AP_FTYPE_* ���Ǹ� ����϶�.</dd>
<dt><code>disableenv=<var>env</var></code></dt>
<dd>�� �Ķ���ͷ� ������ ȯ�溯���� ���ǵǾ�ٸ� ���͸�
������� �ʴ´�.</dd>
<dt><code>enableenv=<var>env</var></code></dt>
<dd>�� �Ķ���ͷ� ������ ȯ�溯���� ���ǵ� ��� ���͸�
����Ѵ�.</dd>
</dl>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>ExtFilterOptions</name>
<description><module>mod_ext_filter</module> �ɼ��� �����Ѵ�</description>
<syntax>ExtFilterOptions <var>option</var> [<var>option</var>] ...</syntax>
<default>ExtFilterOptions DebugLevel=0 NoLogStderr</default>
<contextlist><context>directory</context></contextlist>
<usage>
<p><directive>ExtFilterOptions</directive> ���þ��
<module>mod_ext_filter</module>�� Ư���� ó���ɼ��� �����Ѵ�.
<var>Option</var>�� ������ �ϳ���.</p>
<dl>
<dt><code>DebugLevel=<var>n</var></code></dt>
<dd>
<code>DebugLevel</code> �����
<module>mod_ext_filter</module>�� ����ϴ� ����� ����
������ ���Ѵ�. �⺻���� ����׹��� ������� �ʴ´�.
�̴� <code>DebugLevel=0</code>�� ����. ���� ���ڸ�
����Ҽ���, �� ���� ����׹��� ��ϵǰ� ���� ������
�������. ���ڰ��� ���� �ǹ̴� <code>mod_ext_filter.c</code>
�պκп� �ִ� DBGLVL_ ��� ���ǿ� ������ִ�.
<p>����: ���� �α׸� ����Ϸ��� core ���þ� <directive
module="core">LogLevel</directive>�� ����Ͽ� ����׹���
����ġ ����α׿� ����ؾ� �Ѵ�.</p>
</dd>
<dt><code>LogStderr | NoLogStderr</code></dt>
<dd><code>LogStderr</code> Ű����� �ܺ� ���� ���α׷���
ǥ�ؿ���� ����ϴ� ������ ����ġ ����α׿� ����Ѵ�.
<code>NoLogStderr</code>�� �� ����� ���� �ʴ´�.</dd>
</dl>
<example><title>����</title>
ExtFilterOptions LogStderr DebugLevel=0
</example>
<p>���� ������ ����ϸ� ���Ͱ� ǥ�ؿ���� ����ϴ� ������
����ġ ����α׿� ����ϰ�, <module>mod_ext_filter</module>��
��ü ����׹��� ������� �ʴ´�. </p>
</usage>
</directivesynopsis>
</modulesynopsis>