1<?xml version="1.0" encoding="UTF-8"?>
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
7      -->
8<title>mod_proxy_scgi - 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" /><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 サーバ バージョン 2.2</p>
20<img alt="" src="/images/feather.gif" /></div>
21<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
22<div id="path">
23<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.2</a> &gt; <a href="./">モジュール</a></div>
24<div id="page-content">
25<div id="preamble"><h1>Apache モジュール mod_proxy_scgi</h1>
26<div class="toplang">
27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_proxy_scgi.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/ja/mod/mod_proxy_scgi.html" title="Japanese">&nbsp;ja&nbsp;</a></p>
29</div>
30<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> のための SCGI ゲートウェイモジュール</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>proxy_scgi_module</td></tr>
33<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_proxy_scgi.c</td></tr>
34<tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>Apache 2.2.14 以降で使用可能</td></tr></table>
35<h3>概要</h3>
36
37    <p>本モジュールには <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> が<em>必要です</em>。
38    本モジュールは <a href="http://python.ca/scgi/protocol.txt">SCGI protocol, 
39    version 1</a> をサポートします。</p>
40
41    <p>SCGI プロトコルを扱うためには、<code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> 
42    と <code class="module"><a href="/mod/mod_proxy_scgi.html">mod_proxy_scgi</a></code>が サーバに組み込まれて
43    いなければいけません。</p>
44
45    <div class="warning"><h3>警告</h3>
46      <p><a href="mod_proxy.html#access">
47      安全なサーバにする</a>までプロキシ機能は有効にしないでください。
48      オープンプロキシサーバはあなた自身のネットワークにとっても、
49      インターネット全体にとっても危険です。</p>
50    </div>
51</div>
52<div id="quickview"><h3 class="directives">ディレクティブ</h3>
53<ul id="toc">
54<li><img alt="" src="/images/down.gif" /> <a href="#proxyscgiinternalredirect">ProxySCGIInternalRedirect</a></li>
55<li><img alt="" src="/images/down.gif" /> <a href="#proxyscgisendfile">ProxySCGISendfile</a></li>
56</ul>
57<h3>トピック</h3>
58<ul id="topics">
59<li><img alt="" src="/images/down.gif" /> <a href="#examples">例</a></li>
60</ul><h3>参照</h3>
61<ul class="seealso">
62<li><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></li>
63<li><code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code></li>
64</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
65<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
66<div class="section">
67<h2><a name="examples" id="examples">例</a></h2>
68    <p>以下の例を動かすには、<code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> と <code class="module"><a href="/mod/mod_proxy_scgi.html">mod_proxy_scgi</a></code>
69    を有効にしなければいけないことを忘れないでください。</p>
70
71    <div class="example"><h3>簡単なゲートウェイ</h3><p><code>
72      ProxyPass /scgi-bin/ scgi://localhost:4000/
73    </code></p></div>
74
75    <p>ロードバランスするゲートウェイには、既に言及したプロキシモジュール
76    に加えて <code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code> が必要です。</p>
77
78    <div class="example"><h3>ロードバランスするゲートウェイ</h3><p><code>
79    ProxyPass /scgi-bin/ balancer://somecluster/<br />
80    &lt;Proxy balancer://somecluster/&gt;<br />
81    <span class="indent">
82        BalancerMember scgi://localhost:4000/<br />
83        BalancerMember scgi://localhost:4001/<br />
84    </span>
85    &lt;/Proxy&gt;
86    </code></p></div>
87</div>
88<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
89<div class="directive-section"><h2><a name="ProxySCGIInternalRedirect" id="ProxySCGIInternalRedirect">ProxySCGIInternalRedirect</a> <a name="proxyscgiinternalredirect" id="proxyscgiinternalredirect">ディレクティブ</a></h2>
90<table class="directive">
91<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>バックエンドからの内部的なリダイレクトレスポンスを有効あるいは無効にする</td></tr>
92<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ProxySCGIInternalRedirect On|Off</code></td></tr>
93<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ProxySCGIInternalRedirect On</code></td></tr>
94<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ</td></tr>
95<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
96<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_proxy_scgi</td></tr>
97</table>
98    <p><code class="directive">ProxySCGIInternalRedirect</code> で、
99    バックエンドが内部的にゲートウェイを別の URL にリダイレクトできるようにします。
100    この機能は <code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code> 起源で、レスポンスステータスが
101    <code>OK</code> (<code>200</code>) で、かつレスポンスが <code>Location</code>
102    ヘッダを持ち、かつヘッダ値の先頭がスラッシュ (<code>/</code>) であれば、
103    内部的にリダイレクトします。このヘッダ値が内部的なリダイレクト先の
104    新しい URL として解釈されます。</p>
105
106    <p>機能を無効にしない限り、<code class="module"><a href="/mod/mod_proxy_scgi.html">mod_proxy_scgi</a></code> は 
107    上記の点で <code class="module"><a href="/mod/mod_cgi.html">mod_cgi</a></code> と同じ動作をします。</p>
108
109    <div class="example"><h3>例</h3><p><code>
110    ProxySCGIInternalRedirect Off
111    </code></p></div>
112
113</div>
114<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
115<div class="directive-section"><h2><a name="ProxySCGISendfile" id="ProxySCGISendfile">ProxySCGISendfile</a> <a name="proxyscgisendfile" id="proxyscgisendfile">ディレクティブ</a></h2>
116<table class="directive">
117<tr><th><a href="directive-dict.html#Description">説明:</a></th><td><var>X-Sendfile</var> 疑似レスポンスヘッダの評価を有効にする</td></tr>
118<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ProxySCGISendfile On|Off|<var>Headername</var></code></td></tr>
119<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ProxySCGISendfile Off</code></td></tr>
120<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ</td></tr>
121<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
122<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_proxy_scgi</td></tr>
123</table>
124    <p><code class="directive">ProxySCGISendfile</code> ディレクティブを設定すると、
125    SCGI バックエンドの代わりにゲートウェイが直接ファイルを転送できるようにします。
126    これはパフォーマンス向上のために使えます。 httpd は <code>sendfile</code>
127    などの最適化を行うことができます。これはバックエンドからソケット経由でファイルを
128    受けた時にはできない最適化です。</p>
129    <p><code class="directive">ProxySCGISendfile</code> の引数でゲートウェイの動作
130    を制御します:</p>
131    <dl>
132    <dt><code>Off</code></dt>
133    <dd>特別な動作をしません。</dd>
134
135    <dt><code>On</code></dt>
136    <dd>ゲートウェイはバックエンドのレスポンスヘッダから <code>X-Sendfile</code> と
137    呼ばれるヘッダを探し、その値を転送対象のファイル名と見なします。
138    ヘッダは最終的なレスポンスヘッダからは除かれます。
139    次の設定と等価です。
140    <code>ProxySCGISendfile X-Sendfile</code>.</dd>
141
142    <dt>その他</dt>
143    <dd><code>On</code> にした場合に似ていますが、ハードコードしたヘッダ名の
144    代わりに、引数がヘッダ名として使われます。</dd>
145    </dl>
146
147    <div class="example"><h3>Example</h3><p><code>
148    # Use the default header (X-Sendfile)<br />
149    ProxySCGISendfile On<br />
150    <br />
151    # Use a different header<br />
152    ProxySCGISendfile X-Send-Static
153    </code></p></div>
154
155</div>
156</div>
157<div class="bottomlang">
158<p><span>翻訳済み言語: </span><a href="/en/mod/mod_proxy_scgi.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
159<a href="/ja/mod/mod_proxy_scgi.html" title="Japanese">&nbsp;ja&nbsp;</a></p>
160</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">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;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>
161<script type="text/javascript"><!--//--><![CDATA[//><!--
162var comments_shortname = 'httpd';
163var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_proxy_scgi.html';
164(function(w, d) {
165    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
166        d.write('<div id="comments_thread"><\/div>');
167        var s = d.createElement('script');
168        s.type = 'text/javascript';
169        s.async = true;
170        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
171        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
172    }
173    else { 
174        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
175    }
176})(window, document);
177//--><!]]></script></div><div id="footer">
178<p class="apache">Copyright 2013 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
179<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[//><!--
180if (typeof(prettyPrint) !== 'undefined') {
181    prettyPrint();
182}
183//--><!]]></script>
184</body></html>