mod_ext_filter.html.ja.euc-jp
来自「apache服务器源代码(版本号:2.2.2)」· EUC-JP 代码 · 共 369 行 · 第 1/2 页
EUC-JP
369 行
<?xml version="1.0" encoding="EUC-JP"?><!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="ja" xml:lang="ja"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --><title>mod_ext_filter - Apache HTTP サ〖バ</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 サ〖バ バ〖ジョン 2.2</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 サ〖バ</a> > <a href="http://httpd.apache.org/docs/">ドキュメンテ〖ション</a> > <a href="../">バ〖ジョン 2.2</a> > <a href="./">モジュ〖ル</a></div><div id="page-content"><div id="preamble"><h1>Apache モジュ〖ル mod_ext_filter</h1><div class="toplang"><p><span>Available Languages: </span><a href="../en/mod/mod_ext_filter.html" hreflang="en" rel="alternate" title="English"> en </a> |<a href="../ja/mod/mod_ext_filter.html" title="Japanese"> ja </a> |<a href="../ko/mod/mod_ext_filter.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p></div><div class="outofdate">This translation may be out of date. Check the English version for recent changes.</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>ext_filter_module</td></tr><tr><th><a href="module-dict.html#SourceFile">ソ〖スファイル:</a></th><td>mod_ext_filter.c</td></tr></table><h3>车妥</h3> <p><code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> では <a href="../filter.html">フィルタ</a> の捶れ科しんだ帽姐なプログラミングモデルが捏丁されます。このモジュ〖ルを 蝗えば、筛洁掐蜗から粕み哈んで、筛洁叫蜗に今き叫すプログラム (すなわち Unix 妨及のフィルタコマンド) を Apache のフィルタにすることが できます。このフィルタの怠菇は、Apache API 羹けに今かれた Apache サ〖バプロセス柒で悸乖される漓脱のフィルタよりもずっと觅いですが、 笆布のような网爬もあります。</p> <ul> <li>ずっとシンプルなプログラミングモデル</li> <li>プログラムが筛洁掐蜗から粕んで筛洁叫蜗に今くものである嘎り、 どんなプログラム咐胳やスクリプト咐胳でも蝗うことができる</li> <li>贷赂のプログラムを恃构することなく Apache のフィルタとして 蝗うことができる</li> </ul> <p>拉墙の啼玛により悸笨脱に努さないとしても、フィルタのプロトタイプ脱の 茨董としては <code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code> は蝗えます。</p></div><div id="quickview"><h3 class="directives">ディレクティブ</h3><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#extfilterdefine">ExtFilterDefine</a></li><li><img alt="" src="../images/down.gif" /> <a href="#extfilteroptions">ExtFilterOptions</a></li></ul><h3>トピック</h3><ul id="topics"><li><img alt="" src="../images/down.gif" /> <a href="#examples">毋</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="examples" id="examples">毋</a></h2> <h3>戮のタイプのレスポンスから HTML を栏喇する</h3> <div class="example"><p><code> # mod_ext_filter directive to define a filter<br /> # to HTML-ize text/c files using the external<br /> # program /usr/bin/enscript, with the type of<br /> # the result set to text/html<br /> ExtFilterDefine c-to-html mode=output \<br /> <span class="indent"> intype=text/c outtype=text/html \<br /> cmd="/usr/bin/enscript --color -W html -Ec -o - -"<br /> </span> <br /> <Directory "/export/home/trawick/apacheinst/htdocs/c"><br /> <span class="indent"> # core directive to cause the new filter to<br /> # be run on output<br /> SetOutputFilter c-to-html<br /> <br /> # mod_mime directive to set the type of .c<br /> # files to text/c<br /> AddType text/c .c<br /> <br /> # mod_ext_filter directive to set the debug<br /> # level just high enough to see a log message<br /> # per request showing the configuration in force<br /> ExtFilterOptions DebugLevel=1<br /> </span> </Directory> </code></p></div> <h3>コンテントエンコ〖ディングのフィルタを悸刘する</h3> <p>庙: この gzip の毋はデモ脱です。悸脱弄な悸刘は <code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> を徊救してください。</p> <div class="example"><p><code> # mod_ext_filter directive to define the external filter<br /> ExtFilterDefine gzip mode=output cmd=/bin/gzip<br /> <br /> <Location /gzipped><br /> <span class="indent"> # core directive to cause the gzip filter to be<br /> # run on output<br /> SetOutputFilter gzip<br /> <br /> # mod_header directive to add<br /> # "Content-Encoding: gzip" header field<br /> Header set Content-Encoding gzip<br /> </span> </Location> </code></p></div> <h3>サ〖バを觅くする</h3> <div class="example"><p><code> # mod_ext_filter directive to define a filter<br /> # which runs everything through cat; cat doesn't<br /> # modify anything; it just introduces extra pathlength<br /> # and consumes more resources<br /> ExtFilterDefine slowdown mode=output cmd=/bin/cat \<br /> <span class="indent"> preservescontentlength<br /> </span> <br /> <Location /><br /> <span class="indent"> # core directive to cause the slowdown filter to<br /> # be run several times on output<br /> #<br /> SetOutputFilter slowdown;slowdown;slowdown<br /> </span> </Location> </code></p></div> <h3>sed を蝗って炳批面のテキストを弥垂する</h3> <div class="example"><p><code> # mod_ext_filter directive to define a filter which<br /> # replaces text in the response<br /> #<br /> ExtFilterDefine fixtext mode=output intype=text/html \<br /> <span class="indent"> cmd="/bin/sed s/verdana/arial/g"<br /> </span> <br /> <Location /><br /> <span class="indent"> # core directive to cause the fixtext filter to<br /> # be run on output<br /> SetOutputFilter fixtext<br /> </span> </Location> </code></p></div> <h3>侍のフィルタのトレ〖ス</h3> <div class="example"><p><code> # Trace the data read and written by mod_deflate<br /> # for a particular client (IP 192.168.1.31)<br /> # experiencing compression problems.<br /> # This filter will trace what goes into mod_deflate.<br /> ExtFilterDefine tracebefore \<br /> <span class="indent"> cmd="/bin/tracefilter.pl /tmp/tracebefore" \<br /> EnableEnv=trace_this_client<br /> </span> <br /> # This filter will trace what goes after mod_deflate.<br /> # Note that without the ftype parameter, the default<br /> # filter type of AP_FTYPE_RESOURCE would cause the<br /> # filter to be placed *before* mod_deflate in the filter<br /> # chain. Giving it a numeric value slightly higher than<br />
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?