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_status - 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_status</h1>
26<div class="toplang">
27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_status.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/ja/mod/mod_status.html" title="Japanese">&nbsp;ja&nbsp;</a> |
29<a href="/ko/mod/mod_status.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
30<a href="/tr/mod/mod_status.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
31</div>
32<div class="outofdate">この日本語訳はすでに古くなっている
33            可能性があります。
34            最近更新された内容を見るには英語版をご覧下さい。
35        </div>
36<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>サーバの活動状況と性能に関する情報を提供する</td></tr>
37<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
38<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>status_module</td></tr>
39<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_status.c</td></tr></table>
40<h3>概要</h3>
41
42    <p>この Status モジュールによりサーバ管理者はサーバがどのくらい
43    の性能で動作しているかを知ることができるようになります。
44    現時点でのサーバの統計情報を読みやすい形式で表した HTML ページが
45    表示されます。必要であれば、このページは自動的にリフレッシュさせる
46    こともできます (互換性のあるブラウザを使用している場合)。
47    別に、現時点でのサーバの状態を単純な機械読み取り可能なリストで
48    表すページもあります。</p>
49
50    <p>表示される情報は:</p>
51
52    <ul>
53      <li>リクエストを扱っているワーカーの数</li>
54
55      <li>アイドル <span class="transnote">(<em>訳注:</em> リクエストを扱っていない)</span> ワーカーの数</li>
56
57      <li>各ワーカーの状態、ワーカーが扱ったリクエストの数、
58      ワーカーが送った総バイト数 (*)</li>
59
60      <li>総アクセス数と総バイト数 (*)</li>
61
62      <li>サーバが起動もしくは再起動された時刻と動作している時間</li>
63
64      <li>平均の 1 秒あたりのリクエスト数、1 秒あたりの送られたバイト数、
65      リクエストあたりのバイト数 (*)</li>
66
67      <li>各ワーカーと Apache 全体で使用されている CPU の割合 (*)</li>
68
69      <li>現時点のホストと処理されているリクエスト (*)</li>
70    </ul>
71
72    <p>"(*)" の付いている情報を表示するには 
73    <code class="directive"><a href="#extendedstatus">ExtendedStatus</a></code> 
74    が <code>On</code> になっている必要があります。</p>
75</div>
76<div id="quickview"><h3 class="directives">ディレクティブ</h3>
77<ul id="toc">
78<li><img alt="" src="/images/down.gif" /> <a href="#extendedstatus">ExtendedStatus</a></li>
79<li><img alt="" src="/images/down.gif" /> <a href="#seerequesttail">SeeRequestTail</a></li>
80</ul>
81<h3>トピック</h3>
82<ul id="topics">
83<li><img alt="" src="/images/down.gif" /> <a href="#enable">Status を使用可能にする</a></li>
84<li><img alt="" src="/images/down.gif" /> <a href="#autoupdate">自動更新</a></li>
85<li><img alt="" src="/images/down.gif" /> <a href="#machinereadable">機械読み取り可能なステータスファイル</a></li>
86</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
87<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
88<div class="section">
89<h2><a name="enable" id="enable">Status を使用可能にする</a></h2>
90    
91
92    <p>example.com ドメインからのブラウザのみに対して
93    ステータスの報告を使用可能にするには
94    以下のコードを <code>httpd.conf</code> 設定ファイルに追加します</p>
95<div class="example"><p><code>
96    &lt;Location /server-status&gt;<br />
97    SetHandler server-status<br />
98<br />
99    Order Deny,Allow<br />
100    Deny from all<br />
101    Allow from .example.com<br />
102    &lt;/Location&gt;
103</code></p></div>
104
105    <p>これで、サーバの統計情報をウェブブラウザを使って
106    <code>http://your.server.name/server-status</code> をアクセスすることにより
107    知ることができるようになります。</p>
108</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
109<div class="section">
110<h2><a name="autoupdate" id="autoupdate">自動更新</a></h2>
111
112    
113    <p>ブラウザが「リフレッシュ」機能をサポートしていれば、ステータスページを
114    自動的に更新するようにできます。N 秒毎に更新させるためには
115    <code>http://your.server.name/server-status?refresh=N</code>
116    というページをアクセスしてください。</p>
117
118</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
119<div class="section">
120<h2><a name="machinereadable" id="machinereadable">機械読み取り可能なステータスファイル</a></h2>
121
122    
123    <p><code>http://your.server.name/server-status?auto</code> を
124    アクセスすることにより、ステータスファイルの機械読み取り可能なバージョンを
125    得ることができます。これは自動的に実行されるときに便利です。
126    Apache の <code>/support</code> ディレクトリにある
127    Perl プログラム <code>log_server_status</code> を見てください。</p>
128
129    <div class="note">
130      <strong><code class="module"><a href="/mod/mod_status.html">mod_status</a></code> がサーバに組み込まれている
131      場合、ハンドラの機能はディレクトリ<em>毎</em>のファイル
132      (<em>すなわち</em>、<code>.htaccess</code>) も含む<em>すべて</em>の
133      設定ファイルで使用可能になることには注意をしておく必要があります。
134      これは、サイトによってはセキュリティに関する望ましくない結果を
135      もたらすことがあるかもしれません。</strong>
136    </div>
137
138</div>
139<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
140<div class="directive-section"><h2><a name="ExtendedStatus" id="ExtendedStatus">ExtendedStatus</a> <a name="extendedstatus" id="extendedstatus">ディレクティブ</a></h2>
141<table class="directive">
142<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>各リクエストに対して拡張ステータス情報を保存する</td></tr>
143<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ExtendedStatus On|Off</code></td></tr>
144<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ExtendedStatus Off</code></td></tr>
145<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr>
146<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
147<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_status</td></tr>
148<tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>ExtendedStatus は Apache 1.3.2 以降でのみ使用可能</td></tr>
149</table>
150    <p>この設定はサーバ全体に対して適用され、バーチャルホスト毎に
151    変更することはできません。拡張ステータス情報の収集はサーバの
152    動作を遅くすることがあります。</p>
153
154</div>
155<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
156<div class="directive-section"><h2><a name="SeeRequestTail" id="SeeRequestTail">SeeRequestTail</a> <a name="seerequesttail" id="seerequesttail">ディレクティブ</a></h2>
157<table class="directive">
158<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>リクエストの最初の 63 文字か最後の 63 文字
159のどちらを mod_status が表示するかを決める</td></tr>
160<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>SeeRequestTail On|Off</code></td></tr>
161<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SeeRequestTail Off</code></td></tr>
162<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr>
163<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
164<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_status</td></tr>
165<tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Apache 2.2.7 以降</td></tr>
166</table>
167    <p><code>ExtendedStatus On</code> に設定すると mod_status 
168    は処理中のリクエスト<span class="transnote">(<em>訳注:</em> の文字列)</span>を表示します。
169    歴史的な理由で、リクエストのうちの63文字だけが表示用に記録されます。
170    このディレクティブで、最初の63文字を記録する(従来からの動作、
171    そして現在もデフォルト)か、最後の63文字を記録するかを決めます。
172    もちろん、リクエストの長さが64文字以上のときに効果があります
173    <span class="transnote">(<em>訳注:</em> 63文字以下だと結果的に同じ動作)</span>。</p>
174
175    <p>Apache が <code>GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</code> というリクエストを扱っているとき、 mod_status は以下のように表示します:
176    </p>
177
178    <table class="bordered">
179      <tr>
180        <th>Off (デフォルト)</th>
181        <td>GET&nbsp;/disk1/storage/apache/htdocs/images/imagestore1/food/fruits</td>
182      </tr>
183      <tr>
184        <th>On</th>
185        <td>orage/apache/htdocs/images/imagestore1/food/apples.jpg&nbsp;HTTP/1.1</td>
186      </tr>
187    </table>
188
189
190</div>
191</div>
192<div class="bottomlang">
193<p><span>翻訳済み言語: </span><a href="/en/mod/mod_status.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
194<a href="/ja/mod/mod_status.html" title="Japanese">&nbsp;ja&nbsp;</a> |
195<a href="/ko/mod/mod_status.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
196<a href="/tr/mod/mod_status.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
197</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>
198<script type="text/javascript"><!--//--><![CDATA[//><!--
199var comments_shortname = 'httpd';
200var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_status.html';
201(function(w, d) {
202    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
203        d.write('<div id="comments_thread"><\/div>');
204        var s = d.createElement('script');
205        s.type = 'text/javascript';
206        s.async = true;
207        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
208        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
209    }
210    else { 
211        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
212    }
213})(window, document);
214//--><!]]></script></div><div id="footer">
215<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>
216<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[//><!--
217if (typeof(prettyPrint) !== 'undefined') {
218    prettyPrint();
219}
220//--><!]]></script>
221</body></html>