1
<?xml version="1.0" encoding="EUC-JP"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5
This file is generated from xml source: DO NOT EDIT
6
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8
<title>mod_ext_filter - Apache HTTP ������</title>
9
<link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10
<link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11
<link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12
<link href="../images/favicon.ico" rel="shortcut icon" /></head>
14
<div id="page-header">
15
<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>
16
<p class="apache">Apache HTTP ������ ������� 2.2</p>
17
<img alt="" src="../images/feather.gif" /></div>
18
<div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
20
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP ������</a> > <a href="http://httpd.apache.org/docs/">�ɥ�����ơ������</a> > <a href="../">�С������ 2.2</a> > <a href="./">�⥸�塼��</a></div>
21
<div id="page-content">
22
<div id="preamble"><h1>Apache �⥸�塼�� mod_ext_filter</h1>
24
<p><span>Available Languages: </span><a href="../en/mod/mod_ext_filter.html" hreflang="en" rel="alternate" title="English"> en </a> |
25
<a href="../ja/mod/mod_ext_filter.html" title="Japanese"> ja </a> |
26
<a href="../ko/mod/mod_ext_filter.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
28
<div class="outofdate">This translation may be out of date. Check the
29
English version for recent changes.</div>
30
<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>�쥹�ݥΥܥǥ��饤����Ȥ��������˳����ץ������ǽ�������</td></tr>
31
<tr><th><a href="module-dict.html#Status">���ơ�����:</a></th><td>Extension</td></tr>
32
<tr><th><a href="module-dict.html#ModuleIdentifier">�⥸�塼�뼱�̻�:</a></th><td>ext_filter_module</td></tr>
33
<tr><th><a href="module-dict.html#SourceFile">�������ե�����:</a></th><td>mod_ext_filter.c</td></tr></table>
36
<p><code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> �Ǥ� <a href="../filter.html">�ե��륿</a>
37
�δ���Ƥ����ñ��ʥץ�����ߥ�ǥ뤬����ޤ������Υ⥸�塼���
38
�Ȥ��С�ɸ�����Ϥ����ɤ߹���ǡ�ɸ����Ϥ˽Ф��ץ������
39
(���ʤ�� Unix �����Υե��륿���ޥ��) �� Apache �Υե��륿�ˤ��뤳�Ȥ�
40
�Ǥ��ޤ������Υե��륿�ε����ϡ�Apache API �����˽줿 Apache
41
�����Хץ�������Ǽ¹Ԥ�������ѤΥե��륿���⤺�ä��٤��Ǥ�����
42
�ʲ��Τ褦�������⤢��ޤ���</p>
45
<li>���äȥ���ץ�ʥץ�����ߥ�ǥ�</li>
47
<li>�ץ�����बɸ�����Ϥ����ɤ��ɸ����Ϥ˽�ΤǤ���¤ꡢ
48
�ɤ�ʥץ���������䥹����ץȸ���Ǥ�Ȥ����Ȥ��Ǥ���</li>
50
<li>��¸�Υץ��������ѹ����뤳�Ȥʤ� Apache �Υե��륿�Ȥ���
54
<p>��ǽ������ˤ��±��Ѥ�Ŭ���ʤ��Ȥ��Ƥ⡢�ե��륿�Υץ��ȥ������Ѥ�
55
�Ķ��Ȥ��Ƥ� <code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> �ϻȤ��ޤ���</p>
58
<div id="quickview"><h3 class="directives">�ǥ��쥯�ƥ���</h3>
60
<li><img alt="" src="../images/down.gif" /> <a href="#extfilterdefine">ExtFilterDefine</a></li>
61
<li><img alt="" src="../images/down.gif" /> <a href="#extfilteroptions">ExtFilterOptions</a></li>
65
<li><img alt="" src="../images/down.gif" /> <a href="#examples">��</a></li>
68
<li><a href="../filter.html">�ե��륿</a></li>
70
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
72
<h2><a name="examples" id="examples">��</a></h2>
74
<h3>¾�Υ����פΥ쥹�ݥ��� HTML ����������</h3>
75
<div class="example"><p><code>
76
# mod_ext_filter directive to define a filter<br />
77
# to HTML-ize text/c files using the external<br />
78
# program /usr/bin/enscript, with the type of<br />
79
# the result set to text/html<br />
80
ExtFilterDefine c-to-html mode=output \<br />
82
intype=text/c outtype=text/html \<br />
83
cmd="/usr/bin/enscript --color -W html -Ec -o - -"<br />
86
<Directory "/export/home/trawick/apacheinst/htdocs/c"><br />
88
# core directive to cause the new filter to<br />
89
# be run on output<br />
90
SetOutputFilter c-to-html<br />
92
# mod_mime directive to set the type of .c<br />
93
# files to text/c<br />
94
AddType text/c .c<br />
96
# mod_ext_filter directive to set the debug<br />
97
# level just high enough to see a log message<br />
98
# per request showing the configuration in force<br />
99
ExtFilterOptions DebugLevel=1<br />
105
<h3>����ƥ�ȥ����ǥ��Υե��륿���������</h3>
106
<p>��: ���� gzip ����ϥǥ��ѤǤ�������Ū�ʼ�����
107
<code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> �Ȥ��Ƥ���������</p>
109
<div class="example"><p><code>
110
# mod_ext_filter directive to define the external filter<br />
111
ExtFilterDefine gzip mode=output cmd=/bin/gzip<br />
113
<Location /gzipped><br />
114
<span class="indent">
115
# core directive to cause the gzip filter to be<br />
116
# run on output<br />
117
SetOutputFilter gzip<br />
119
# mod_header directive to add<br />
120
# "Content-Encoding: gzip" header field<br />
121
Header set Content-Encoding gzip<br />
127
<h3>�����Ф��٤�����</h3>
128
<div class="example"><p><code>
129
# mod_ext_filter directive to define a filter<br />
130
# which runs everything through cat; cat doesn't<br />
131
# modify anything; it just introduces extra pathlength<br />
132
# and consumes more resources<br />
133
ExtFilterDefine slowdown mode=output cmd=/bin/cat \<br />
134
<span class="indent">
135
preservescontentlength<br />
138
<Location /><br />
139
<span class="indent">
140
# core directive to cause the slowdown filter to<br />
141
# be run several times on output<br />
143
SetOutputFilter slowdown;slowdown;slowdown<br />
149
<h3>sed ��ȤäƱ�����Υƥ����Ȥ��ִ�����</h3>
150
<div class="example"><p><code>
151
# mod_ext_filter directive to define a filter which<br />
152
# replaces text in the response<br />
154
ExtFilterDefine fixtext mode=output intype=text/html \<br />
155
<span class="indent">
156
cmd="/bin/sed s/verdana/arial/g"<br />
159
<Location /><br />
160
<span class="indent">
161
# core directive to cause the fixtext filter to<br />
162
# be run on output<br />
163
SetOutputFilter fixtext<br />
169
<h3>�̤Υե��륿�Υȥ졼��</h3>
170
<div class="example"><p><code>
171
# Trace the data read and written by mod_deflate<br />
172
# for a particular client (IP 192.168.1.31)<br />
173
# experiencing compression problems.<br />
174
# This filter will trace what goes into mod_deflate.<br />
175
ExtFilterDefine tracebefore \<br />
176
<span class="indent">
177
cmd="/bin/tracefilter.pl /tmp/tracebefore" \<br />
178
EnableEnv=trace_this_client<br />
181
# This filter will trace what goes after mod_deflate.<br />
182
# Note that without the ftype parameter, the default<br />
183
# filter type of AP_FTYPE_RESOURCE would cause the<br />
184
# filter to be placed *before* mod_deflate in the filter<br />
185
# chain. Giving it a numeric value slightly higher than<br />
186
# AP_FTYPE_CONTENT_SET will ensure that it is placed<br />
187
# after mod_deflate.<br />
188
ExtFilterDefine traceafter \<br />
189
<span class="indent">
190
cmd="/bin/tracefilter.pl /tmp/traceafter" \<br />
191
EnableEnv=trace_this_client ftype=21<br />
194
<Directory /usr/local/docs><br />
195
<span class="indent">
196
SetEnvIf Remote_Addr 192.168.1.31 trace_this_client<br />
197
SetOutputFilter tracebefore;deflate;traceafter<br />
202
<div class="example"><h3>�ǡ�����ȥ졼������ե��륿:</h3><p><code>
203
#!/usr/local/bin/perl -w<br />
206
open(SAVE, ">$ARGV[0]")<br />
207
<span class="indent">
208
or die "can't open $ARGV[0]: $?";<br />
211
while (<STDIN>) {<br />
212
<span class="indent">
222
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
223
<div class="directive-section"><h2><a name="ExtFilterDefine" id="ExtFilterDefine">ExtFilterDefine</a> <a name="extfilterdefine" id="extfilterdefine">�ǥ��쥯�ƥ���</a></h2>
224
<table class="directive">
225
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>�����ե��륿�����</td></tr>
226
<tr><th><a href="directive-dict.html#Syntax">��ʸ:</a></th><td><code>ExtFilterDefine <var>filtername</var> <var>parameters</var></code></td></tr>
227
<tr><th><a href="directive-dict.html#Context">����ƥ�����:</a></th><td>����������ե�����</td></tr>
228
<tr><th><a href="directive-dict.html#Status">���ơ�����:</a></th><td>Extension</td></tr>
229
<tr><th><a href="directive-dict.html#Module">�⥸�塼��:</a></th><td>mod_ext_filter</td></tr>
231
<p><code class="directive">ExtFilterDefine</code> �ϡ��¹Ԥ���ץ�������
232
�����ʤɡ������ե��륿��������������ޤ���</p>
234
<p><var>filtername</var> ���������ե��륿��̾������ꤷ�ޤ���
235
����̾���ϸ�� <code class="directive"><a href="../mod/core.html#setoutputfilter">SetOutputFilter</a></code>
236
�ǥ��쥯�ƥ��֤ǻ���Ǥ��ޤ���̾������Ͽ����뤹�٤ƤΥե��륿��
237
��դǤʤ��ƤϤʤ�ޤ���<em>�������Ǥϡ��ե��륿����Ͽ API �����
238
���顼����𤵤�ޤ��Ǥ����顢��ʣ����̾����ȤäƤ��ޤä��Ȥ��Ǥ�
239
�桼���ˤϤ��Τ��Ȥ���𤵤�ޤ���</em></p>
241
<p>³���ѥ����ν��֤ϴط�̵���������ϼ¹Ԥ��볰�����ޥ�ɤȡ�
242
¾��������������ޤ���<code>cmd=</code> ������ɬ�ܤΥѥ����Ǥ���
246
<dt><code>cmd=<var>cmdline</var></code></dt>
248
<dd><code>cmd=</code> ������ɤϼ¹Ԥ��볰�����ޥ�ɤ���ꤷ�ޤ���
249
�ץ������̾�θ�˰�����������ϡ����ޥ�ɹԤϰ�����ǰϤ�
250
ɬ�פ�����ޤ� (<em>�㤨��</em>��<code>cmd="<var>/bin/mypgm</var>
251
<var>arg1</var> <var>arg2</var>"</code> �Τ褦��)���ץ�������
252
�������ͳ�Ǥʤ���ľ�ܼ¹Ԥ���ޤ��Τǡ��̾�Υ������Ѥ�
253
���������פ�ɬ�פ���ޤ��ץ������ΰ����϶���Ƕ��ڤ��ޤ���
254
�ץ������ΰ����ΰ����Ȥʤ�ɬ�פΤ������ϥХå����ڡ����ǥ���������
255
�Ǥ��ޤ��������ΰ����ˤʤ�Хå�����å���ϥХå�����å����
256
���������פ���ɬ�פ�����ޤ���ɸ��� CGI �Ķ��ѿ��˲ä��ơ�
257
�Ķ��ѿ� DOCUMENT_URI, DOCUMENT_PATH_INFO, and
258
QUERY_STRING_UNESCAPED ���ץ������Τ�������ꤵ��ޤ���</dd>
260
<dt><code>mode=<var>mode</var></code></dt>
262
<dd>�������������ե��륿�ˤ� <code>mode=output</code> (�ǥե����)
263
��Ȥ��ޤ����ꥯ�����Ȥ��������ե��륿�ˤ� <code>mode=input</code>
264
��Ȥ��ޤ���<code>mode=input</code> �� Apache 2.1 ����ο�������ǽ�Ǥ���</dd>
266
<dt><code>intype=<var>imt</var></code></dt>
268
<dd>���Υѥ����ϥե��륿�����٤��ɥ�����Ȥ�
269
�����ͥåȥ�ǥ��������� (<em>���ʤ��</em>��MIME ������) ��
270
���ꤷ�ޤ����ǥե���ȤǤϤ��٤ƤΥɥ�����Ȥ��ե��륿����ޤ���
271
<code>intype=</code> �����ꤵ��Ƥ���С��ե��륿�ϻ��ꤵ��Ƥ��ʤ�
272
�ɥ�����Ȥˤ�Ŭ�Ѥ���ʤ��ʤ�ޤ���</dd>
274
<dt><code>outtype=<var>imt</var></code></dt>
276
<dd>���Υѥ����ϥե��륿���줿�ɥ�����Ȥ�
277
�����ͥåȥ�ǥ��������� (<em>���ʤ��</em>��MIME ������) ��
278
���ꤷ�ޤ����ե��륿ư��ˤȤ�ʤäƥ����ͥåȥ�ǥ��������פ�
279
�Ѥ�����ͭ�ѤǤ����ǥե���ȤǤϥ����ͥåȥ�ǥ��������פ�
282
<dt><code>PreservesContentLength</code></dt>
284
<dd><code>PreservesContentLength</code> ������ɤϥե��륿��
285
content length <span class="transnote">(<em>����:</em> ����ƥ�Ȥ�Ĺ��)</span>
286
���ѹ����ʤ��Ȥ������Ȥ���ꤷ�ޤ����ۤȤ�ɤΥե��륿��
287
content length ���ѹ����뤿�ᡢ����ϥǥե���ȤǤϤ���ޤ���
288
�ե��륿��Ĺ�����Ѥ��ʤ��Ȥ��ϡ����Υ�����ɤ���ꤹ���
291
<dt><code>ftype=<var>filtertype</var></code></dt>
293
<dd>���Υѥ����ϥե��륿����Ͽ�����٤��ե��륿�����פ�
294
���ͤ���ꤷ�ޤ����ۤȤ�ɤξ��ϡ��ǥե���Ȥ� AP_FTYPE_RESOURCE ��
295
��ʬ�Ǥ����ե��륿���ե��륿����������̤ξ���ư���ɬ�פ�����
296
���ϡ����Υѥ�������ꤹ��ɬ�פ�����ޤ��������ǽ���ͤ�
297
util_filter.h �� AP_FTYPE_foo ����Ȥ��Ƥ���������</dd>
299
<dt><code>disableenv=<var>env</var></code></dt>
301
<dd>���ꤵ��Ƥ������˥ե��륿��̵���ˤ��뤿��δĶ��ѿ���
304
<dt><code>enableenv=<var>env</var></code></dt>
306
<dd>���Υѥ����ϥե��륿��ͭ���ˤʤ뤿������ꤵ��Ƥ��ʤ����
307
�ʤ�ʤ��Ķ��ѿ�����ꤷ�ޤ���</dd>
311
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
312
<div class="directive-section"><h2><a name="ExtFilterOptions" id="ExtFilterOptions">ExtFilterOptions</a> <a name="extfilteroptions" id="extfilteroptions">�ǥ��쥯�ƥ���</a></h2>
313
<table class="directive">
314
<tr><th><a href="directive-dict.html#Description">����:</a></th><td><code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> �Υ��ץ���������</td></tr>
315
<tr><th><a href="directive-dict.html#Syntax">��ʸ:</a></th><td><code>ExtFilterOptions <var>option</var> [<var>option</var>] ...</code></td></tr>
316
<tr><th><a href="directive-dict.html#Default">�ǥե����:</a></th><td><code>ExtFilterOptions DebugLevel=0 NoLogStderr</code></td></tr>
317
<tr><th><a href="directive-dict.html#Context">����ƥ�����:</a></th><td>�ǥ��쥯�ȥ�</td></tr>
318
<tr><th><a href="directive-dict.html#Status">���ơ�����:</a></th><td>Extension</td></tr>
319
<tr><th><a href="directive-dict.html#Module">�⥸�塼��:</a></th><td>mod_ext_filter</td></tr>
321
<p><code class="directive">ExtFilterOptions</code> �ǥ��쥯�ƥ��֤�
322
<code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> �����̤ʽ����ѤΥ��ץ�����
323
���ꤷ�ޤ���<var>Option</var> �ˤϰʲ��Τɤ줫����ꤷ�ޤ���</p>
326
<dt><code>DebugLevel=<var>n</var></code></dt>
329
<code>DebugLevel</code> �� <code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code>
330
����������ǥХå���å������Υ�٥������Ǥ��ޤ���
331
�ǥե���ȤǤϡ��ǥХå���å���������������ޤ���
332
����� <code>DebugLevel=0</code> �����ꤹ��Τ�Ʊ���Ǥ���
333
�������礭���ʤ�Фʤ�ۤɡ����¿���ΥǥХå���å�������
334
�������졢�����Ф���ǽ������ޤ������ͤμºݤΰ�̣��
335
<code>mod_ext_filter.c</code> ����Ƭ��� DBGLVL_ �����
338
<p>��: �ǥХå���å������� Apache �Υ��顼������
339
��¸����褦�ˤ��뤿��ˤϡ�core �Υǥ��쥯�ƥ���
340
<code class="directive"><a href="../mod/core.html#loglevel">LogLevel</a></code>
344
<dt><code>LogStderr | NoLogStderr</code></dt>
346
<dd><code>LogStderr</code> ������ɤϳ����ե��륿�ץ������ˤ��
347
ɸ�२�顼 <span class="transnote">(<em>����:</em> stderr)</span> �˽줿��å�������
348
Apache �Υ��顼��������¸����褦�ˤ��ޤ���<code>NoLogStderr</code> ��
349
�դ���¸���ʤ��褦�ˤ��ޤ���</dd>
352
<div class="example"><h3>��</h3><p><code>
353
ExtFilterOptions LogStderr DebugLevel=0
356
<p>������Ǥϡ��ե��륿��ɸ����Ϥ˽줿��å�������
357
Apache �Υ��顼��������¸����ޤ���<code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> �����
358
�ǥХå���å���������������ޤ���</p>
362
<div class="bottomlang">
363
<p><span>Available Languages: </span><a href="../en/mod/mod_ext_filter.html" hreflang="en" rel="alternate" title="English"> en </a> |
364
<a href="../ja/mod/mod_ext_filter.html" title="Japanese"> ja </a> |
365
<a href="../ko/mod/mod_ext_filter.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
366
</div><div id="footer">
367
<p class="apache">Copyright 2006 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>
368
<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>
b'\\ No newline at end of file'