1<?xml version="1.0" encoding="EUC-KR"?> 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="ko" xml:lang="ko"><head><!-- 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 5 This file is generated from xml source: DO NOT EDIT 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 --> 8<title>mod_ext_filter - Apache HTTP Server</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" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" /> 12<script src="/style/scripts/prettify.js" type="text/javascript"> 13</script> 14 15<link href="/images/favicon.ico" rel="shortcut icon" /></head> 16<body> 17<div id="page-header"> 18<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p> 19<p class="apache">Apache HTTP Server Version 2.2</p> 20<img alt="" src="/images/feather.gif" /></div> 21<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<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.2</a> > <a href="./">���</a></div> 24<div id="page-content"> 25<div id="preamble"><h1>����ġ ��� mod_ext_filter</h1> 26<div class="toplang"> 27<p><span>������ ���: </span><a href="/en/mod/mod_ext_filter.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/ja/mod/mod_ext_filter.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 29<a href="/ko/mod/mod_ext_filter.html" title="Korean"> ko </a></p> 30</div> 31<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�. 32 �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div> 33<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>���� ������ �ܺ� ���α����� ó���� �� Ŭ���̾�Ʈ�� 34������</td></tr> 35<tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr> 36<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>ext_filter_module</td></tr> 37<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_ext_filter.c</td></tr></table> 38<h3>���</h3> 39 40 <p><code class="module"><a href="/mod/mod_ext_filter.html">mod_ext_filter</a></code>�� ����ϸ� �����ϰ� �ͼ��� 41 ������� <a href="/filter.html">����</a>�� ���� �� �ִ�. 42 ǥ���Է¿��� �а� ǥ����¿� ���� ���α�(��, ���н��� 43 ���� ��ɾ�)�� ����ġ ���ͷ� ����� �� �ִ�. �̷� ���ʹ� 44 ����ġ API�� �������� ����ġ ���� ���μ��� �ȿ��� ����Ǵ� 45 ���Ϳ� ���� �ſ� ��������, ������ ���� ������ �ִ�:</p> 46 47 <ul> 48 <li>���α��� ���� �ſ� �����ϴ�</li> 49 50 <li>���α��� ǥ���Է¿��� �а� ǥ����¿� �� ���� �ִٸ� 51 � ���α���/��ũ��Ʈ ���� ����� �� �ִ�</li> 52 53 <li>�̹� �ִ� ���α��� �������� ����ġ ���ͷ� ����� 54 �� �ִ�</li> 55 </ul> 56 57 <p>���� ����ϱ�� ������ ����������, 58 <code class="module"><a href="/mod/mod_ext_filter.html">mod_ext_filter</a></code>�� ����Ͽ� ���� ���� ���� 59 �� �ִ�.</p> 60 61</div> 62<div id="quickview"><h3 class="directives">���þ��</h3> 63<ul id="toc"> 64<li><img alt="" src="/images/down.gif" /> <a href="#extfilterdefine">ExtFilterDefine</a></li> 65<li><img alt="" src="/images/down.gif" /> <a href="#extfilteroptions">ExtFilterOptions</a></li> 66</ul> 67<h3>����</h3> 68<ul id="topics"> 69<li><img alt="" src="/images/down.gif" /> <a href="#examples">����</a></li> 70</ul><h3>���</h3> 71<ul class="seealso"> 72<li><a href="/filter.html">����</a></li> 73</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 74<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 75<div class="section"> 76<h2><a name="examples" id="examples">����</a></h2> 77 78 <h3>�ٸ� type�� ������ HTML�� �����</h3> 79 <div class="example"><p><code> 80 # mod_ext_filter ���þ ������<br /> 81 # �ܺ� ���α� /usr/bin/enscript�� ����Ͽ�<br /> 82 # �������ϰ� text/c ������ HTML�� ����� �����<br /> 83 # type�� text/html�� �����ϴ� ���� �����Ѵ�<br /> 84 ExtFilterDefine c-to-html mode=output \<br /> 85 <span class="indent"> 86 intype=text/c outtype=text/html \<br /> 87 cmd="/usr/bin/enscript --color -W html -Ec -o - -"<br /> 88 </span> 89 <br /> 90 <Directory "/export/home/trawick/apacheinst/htdocs/c"><br /> 91 <span class="indent"> 92 # ��¿� ���ο� ���� �����ϴ� core ���þ�<br /> 93 SetOutputFilter c-to-html<br /> 94 <br /> 95 # .c ������ type�� text/c�� ����� mod_mime<br /> 96 # ���þ�<br /> 97 AddType text/c .c<br /> 98 <br /> 99 # ����� ������ ������ ��û���� ���� ������<br /> 100 # �˷��ִ� �α��� ����ϴ� mod_ext_filter<br /> 101 # ���þ�<br /> 102 ExtFilterOptions DebugLevel=1<br /> 103 </span> 104 </Directory> 105 </code></p></div> 106 107 108 <h3>content ���ڵ� ���� �����ϱ�</h3> 109 <p>Note: �Ʒ� gzip ������ ���� ������ ���� �� ���̴�. 110 ���� ���� ����Ϸ��� <code class="module"><a href="/mod/mod_deflate.html">mod_deflate</a></code>�� 111 ����ϱ� �ٶ���.</p> 112 113 <div class="example"><p><code> 114 # �ܺ� ���� �����ϴ� mod_ext_filter ���þ�<br /> 115 ExtFilterDefine gzip mode=output cmd=/bin/gzip<br /> 116 <br /> 117 <Location /gzipped><br /> 118 <span class="indent"> 119 # ����Ҷ� gzip ���� �����ϴ� core ���þ�<br /> 120 SetOutputFilter gzip<br /> 121 <br /> 122 # "Content-Encoding: gzip" ����� �߰��ϴ�<br /> 123 # mod_header ���þ�<br /> 124 Header set Content-Encoding gzip<br /> 125 </span> 126 </Location> 127 </code></p></div> 128 129 130 <h3>������ ������ �ϱ�</h3> 131 <div class="example"><p><code> 132 # cat���� ��� ������ ����ϴ� ���� �����ϴ�<br /> 133 # mod_ext_filter ���þ�; cat�� �ƹ��͵� ��������<br /> 134 # �ʴ´�; ���� ó����θ� ��� �Ͽ� �ڿ��� �� �Ҹ��Ѵ�<br /> 135 ExtFilterDefine slowdown mode=output cmd=/bin/cat \<br /> 136 <span class="indent"> 137 preservescontentlength<br /> 138 </span> 139 <br /> 140 <Location /><br /> 141 <span class="indent"> 142 # ����Ҷ� slowdown ���� ������ �����ϴ� core ���þ�<br /> 143 #<br /> 144 SetOutputFilter slowdown;slowdown;slowdown<br /> 145 </span> 146 </Location> 147 </code></p></div> 148 149 150 <h3>sed�� ����Ͽ� ���信�� ���� ��ü�ϱ�</h3> 151 <div class="example"><p><code> 152 # ���信�� ���� ��ü�ϴ� ���� �����ϴ�<br /> 153 # mod_ext_filter ���þ�<br /> 154 #<br /> 155 ExtFilterDefine fixtext mode=output intype=text/html \<br /> 156 <span class="indent"> 157 cmd="/bin/sed s/verdana/arial/g"<br /> 158 </span> 159 <br /> 160 <Location /><br /> 161 <span class="indent"> 162 # ����Ҷ� fixtext ���� �����ϴ� core ���þ�<br /> 163 SetOutputFilter fixtext<br /> 164 </span> 165 </Location> 166 </code></p></div> 167 168 169 <h3>�ٸ� ���� �����ϱ�</h3> 170 <div class="example"><p><code> 171 # ���� ������ �ִ� Ư�� Ŭ���̾�Ʈ(IP 192.168.1.31)��<br /> 172 # ���� mod_deflate�� �а� ���� �ڷḦ �����Ѵ�.<br /> 173 # �� ���ʹ� mod_deflate�� ������ �� �ڷḦ �����Ѵ�.<br /> 174 ExtFilterDefine tracebefore \<br /> 175 <span class="indent"> 176 cmd="/bin/tracefilter.pl /tmp/tracebefore" \<br /> 177 EnableEnv=trace_this_client<br /> 178 </span> 179 <br /> 180 # �� ���ʹ� mod_deflate���� ������ �ڷḦ �����Ѵ�.<br /> 181 # ftype �Ķ���� ��������ʴ� ���, �⺻ ������<br /> 182 # AP_FTYPE_RESOURCE�� ���� �� mod_deflate *����*<br /> 183 # �д�. AP_FTYPE_CONTENT_SET ���� ���� ���� ���ڰ���<br /> 184 # �����ϸ� mod_deflate ���Ŀ� �����Ѵ�.<br /> 185 ExtFilterDefine traceafter \<br /> 186 <span class="indent"> 187 cmd="/bin/tracefilter.pl /tmp/traceafter" \<br /> 188 EnableEnv=trace_this_client ftype=21<br /> 189 </span> 190 <br /> 191 <Directory /usr/local/docs><br /> 192 <span class="indent"> 193 SetEnvIf Remote_Addr 192.168.1.31 trace_this_client<br /> 194 SetOutputFilter tracebefore;deflate;traceafter<br /> 195 </span> 196 </Directory> 197 </code></p></div> 198 199 <div class="example"><h3>������ �ڷḦ �����ϴ� �����̴�:</h3><p><code> 200 #!/usr/local/bin/perl -w<br /> 201 use strict;<br /> 202 <br /> 203 open(SAVE, ">$ARGV[0]")<br /> 204 <span class="indent"> 205 or die "can't open $ARGV[0]: $?";<br /> 206 </span> 207 <br /> 208 while (<STDIN>) {<br /> 209 <span class="indent"> 210 print SAVE $_;<br /> 211 print $_;<br /> 212 </span> 213 }<br /> 214 <br /> 215 close(SAVE); 216 </code></p></div> 217 218</div> 219<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 220<div class="directive-section"><h2><a name="ExtFilterDefine" id="ExtFilterDefine">ExtFilterDefine</a> <a name="extfilterdefine" id="extfilterdefine">���þ�</a></h2> 221<table class="directive"> 222<tr><th><a href="directive-dict.html#Description">����:</a></th><td>�ܺ� ���� �����Ѵ�</td></tr> 223<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>ExtFilterDefine <var>filtername</var> <var>parameters</var></code></td></tr> 224<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������</td></tr> 225<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> 226<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_ext_filter</td></tr> 227</table> 228 <p><code class="directive">ExtFilterDefine</code> ���þ�� �ܺ� 229 ������ ����� ������ ���α�, �ƱԸ�Ʈ�� �����Ѵ�.</p> 230 231 <p><var>filtername</var>�� ������ ���� �̸��� �����Ѵ�. 232 �� �̸��� SetOutputFilter ���þ�� ����Ѵ�. ����� ��� 233 ���͵鰣�� �̸��� ��ġ�� �ȵȴ�. <em>���� ���͵�� API�� 234 ���� �������� �ʴ´�. ���� ����ڴ� �̸��� ��ġ�� ������ 235 ���� ���Ѵ�.</em></p> 236 237 <p>������ �ܺ� ��ɾ�� �ٸ� ������ �����ϴ� ������ �ƱԸ�Ʈ�� 238 � ��� ���͵� �����ϴ�. ��, <code>cmd=</code> �Ķ���ʹ� 239 �ݵ�� �ʿ��ϴ�. ����� �� �ִ� �Ķ���ʹ� ������ ����:</p> 240 241 <dl> 242 <dt><code>cmd=<var>cmdline</var></code></dt> 243 244 <dd><code>cmd=</code> Ű����� ������ �ܺ� ��ɾ �����Ѵ�. 245 ���α��� �ڿ� �ƱԸ�Ʈ�� �ִٸ� ������� �ֵ��ǥ�� 246 ����� �Ѵ� (<em>���� ���</em>, 247 <code>cmd="<var>/bin/mypgm</var> <var>arg1</var> 248 <var>arg2</var>"</code>). ���� ��ġ���ʰ� ���� ���α��� 249 �����ϱ���� �Ϲ����� �� ���ǥ�� �ʿ���. ���α� 250 �ƱԸ�Ʈ���� ������� �����Ѵ�. ���α� �ƱԸ�Ʈ�� ����� 251 �ִٸ� ��� �տ� �齽������ ����ؾ� �Ѵ�. �齽������ 252 �ƱԸ�Ʈ�� �Ϻζ�� �齽������ �ι� ����ؾ� �Ѵ�. ���α��� 253 �����Ҷ� ǥ�� CGI ȯ�溯���� �߰��� DOCUMENT_URI, 254 DOCUMENT_PATH_INFO, QUERY_STRING_UNESCAPED ������ �����Ѵ�.</dd> 255 256 <dt><code>mode=<var>mode</var></code></dt> 257 258 <dd>������ ó���ϴ� ���ʹ� (�⺻����) <code>mode=output</code>�� 259 ����Ѵ�. ��û�� ó���ϴ� ���ʹ� <code>mode=input</code>�� 260 ����Ѵ�. <code>mode=input</code>�� ����ġ 2.1�� �߰��Ǿ��.</dd> 261 262 <dt><code>intype=<var>imt</var></code></dt> 263 264 <dd>�� �Ķ���ʹ� ���ͷ� ó���� ������ ���ͳ� media 265 type(<em>��</em>, MIME type)�� �����Ѵ�. �⺻������ ��� 266 ������ ���ͷ� ó���Ѵ�. <code>intype=</code>�� �����ϸ� 267 �ٸ� type�� ������ ���ͷ� ó������ �ʴ´�.</dd> 268 269 <dt><code>outtype=<var>imt</var></code></dt> 270 271 <dd>�� �Ķ���ʹ� ���ͷ� ó���� ������ ���ͳ� media 272 type(<em>��</em>, MIME type)�� �����Ѵ�. ����ó�� �۾��߿� 273 ���ͳ� media type�� �����Ҷ� �����ϴ�. �⺻������, ���ͳ� 274 media type�� ������ �ʴ´�.</dd> 275 276 <dt><code>PreservesContentLength</code></dt> 277 278 <dd><code>PreservesContentLength</code> Ű����� ���Ͱ� 279 content length�� �����ϵ��� �Ѵ�. ��κ��� ���Ͱ� content 280 length�� �����ϹǷ� �� Ű����� �⺻���� �ƴϴ�. ���Ͱ� 281 ���̸� �����Ҷ��� �� Ű���带 ����ؾ� �Ѵ�.</dd> 282 283 <dt><code>ftype=<var>filtertype</var></code></dt> 284 285 <dd>�� �Ķ���ʹ� ���� ���� ���� ���ڰ��� �����Ѵ�. 286 ��κ��� ��� �⺻���� AP_FTYPE_RESOURCE�� ����ϴ�. 287 ���� �����ϴ� �� �ڿ����Ϳ� ����ϴ� ��� �� 288 �Ķ���Ͱ� �ʿ��ϴ�. ����� ���� �˷��� util_filter.h�� 289 �ִ� AP_FTYPE_* ���Ǹ� ����϶�.</dd> 290 291 <dt><code>disableenv=<var>env</var></code></dt> 292 293 <dd>�� �Ķ���ͷ� ������ ȯ�溯���� ���ǵǾ�ٸ� ���� 294 ������� �ʴ´�.</dd> 295 296 <dt><code>enableenv=<var>env</var></code></dt> 297 298 <dd>�� �Ķ���ͷ� ������ ȯ�溯���� ���ǵ� ��� ���� 299 ����Ѵ�.</dd> 300 </dl> 301 302</div> 303<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 304<div class="directive-section"><h2><a name="ExtFilterOptions" id="ExtFilterOptions">ExtFilterOptions</a> <a name="extfilteroptions" id="extfilteroptions">���þ�</a></h2> 305<table class="directive"> 306<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> 307<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>ExtFilterOptions <var>option</var> [<var>option</var>] ...</code></td></tr> 308<tr><th><a href="directive-dict.html#Default">�⺻��:</a></th><td><code>ExtFilterOptions DebugLevel=0 NoLogStderr</code></td></tr> 309<tr><th><a href="directive-dict.html#Context">������:</a></th><td>directory</td></tr> 310<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> 311<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_ext_filter</td></tr> 312</table> 313 <p><code class="directive">ExtFilterOptions</code> ���þ�� 314 <code class="module"><a href="/mod/mod_ext_filter.html">mod_ext_filter</a></code>�� Ư���� ó���ɼ��� �����Ѵ�. 315 <var>Option</var>�� ������ �ϳ���.</p> 316 317 <dl> 318 <dt><code>DebugLevel=<var>n</var></code></dt> 319 320 <dd> 321 <code>DebugLevel</code> Ű����� 322 <code class="module"><a href="/mod/mod_ext_filter.html">mod_ext_filter</a></code>�� ����ϴ� ����� ���� 323 ������ ���Ѵ�. �⺻���� ������� ������� �ʴ´�. 324 �̴� <code>DebugLevel=0</code>�� ����. ���� ���ڸ� 325 ����Ҽ���, �� ���� ������� ��ϵǰ� ���� ������ 326 �������. ���ڰ��� ���� �ǹ̴� <code>mod_ext_filter.c</code> 327 �պκп� �ִ� DBGLVL_ ��� ���ǿ� ������ִ�. 328 329 <p>����: ���� �α� ����Ϸ��� core ���þ� <code class="directive"><a href="/mod/core.html#loglevel">LogLevel</a></code>�� ����Ͽ� ������� 330 ����ġ ����α� ����ؾ� �Ѵ�.</p> 331 </dd> 332 333 <dt><code>LogStderr | NoLogStderr</code></dt> 334 335 <dd><code>LogStderr</code> Ű����� �ܺ� ���� ���α��� 336 ǥ�ؿ���� ����ϴ� ������ ����ġ ����α� ����Ѵ�. 337 <code>NoLogStderr</code>�� �� ����� ���� �ʴ´�.</dd> 338 </dl> 339 340 <div class="example"><h3>����</h3><p><code> 341 ExtFilterOptions LogStderr DebugLevel=0 342 </code></p></div> 343 344 <p>���� ������ ����ϸ� ���Ͱ� ǥ�ؿ���� ����ϴ� ������ 345 ����ġ ����α� ����ϰ�, <code class="module"><a href="/mod/mod_ext_filter.html">mod_ext_filter</a></code>�� 346 ��ü ������� ������� �ʴ´�. </p> 347 348</div> 349</div> 350<div class="bottomlang"> 351<p><span>������ ���: </span><a href="/en/mod/mod_ext_filter.html" hreflang="en" rel="alternate" title="English"> en </a> | 352<a href="/ja/mod/mod_ext_filter.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 353<a href="/ko/mod/mod_ext_filter.html" title="Korean"> ko </a></p> 354</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 355<script type="text/javascript"><!--//--><![CDATA[//><!-- 356var comments_shortname = 'httpd'; 357var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_ext_filter.html'; 358(function(w, d) { 359 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 360 d.write('<div id="comments_thread"><\/div>'); 361 var s = d.createElement('script'); 362 s.type = 'text/javascript'; 363 s.async = true; 364 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 365 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 366 } 367 else { 368 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 369 } 370})(window, document); 371//--><!]]></script></div><div id="footer"> 372<p class="apache">Copyright 2013 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> 373<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 374if (typeof(prettyPrint) !== 'undefined') { 375 prettyPrint(); 376} 377//--><!]]></script> 378</body></html>