]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_info.xml.ja
Rebuild
[apache] / docs / manual / mod / mod_info.xml.ja
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
4 <!-- English Revision: 450473:1702012 (outdated) -->
5
6 <!--
7  Licensed to the Apache Software Foundation (ASF) under one or more
8  contributor license agreements.  See the NOTICE file distributed with
9  this work for additional information regarding copyright ownership.
10  The ASF licenses this file to You under the Apache License, Version 2.0
11  (the "License"); you may not use this file except in compliance with
12  the License.  You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 -->
22
23 <modulesynopsis metafile="mod_info.xml.meta">
24
25 <name>mod_info</name>
26 <description>サーバの設定の包括的な概観を提供する</description>
27 <status>Extension</status>
28 <sourcefile>mod_info.c</sourcefile>
29 <identifier>info_module</identifier>
30
31 <summary>
32     <p><module>mod_info</module> を設定するには、以下を <code>httpd.conf</code>
33     ファイルに加えます。</p>
34
35     <example>
36       &lt;Location /server-info&gt;<br />
37       <indent>
38         SetHandler server-info<br />
39       </indent>
40       &lt;/Location&gt;
41     </example>
42
43     <p><directive type="section" module="core">Location</directive>
44     の中で <module>mod_access</module> を使って、サーバ設定情報への
45     アクセスを制限したいと思うかもしれません :</p>
46
47     <example>
48       &lt;Location /server-info&gt;<br />
49       <indent>
50         SetHandler server-info<br />
51         Order deny,allow<br />
52         Deny from all<br />
53         Allow from yourcompany.com<br />
54       </indent>
55       &lt;/Location&gt;
56     </example>
57
58     <p>一旦設定すると、<code>http://your.host.example.com/server-info</code>
59     にアクセスすることでサーバの情報を得られるようになります。</p>
60 </summary>
61
62 <section id="security"><title>Security Issues</title>
63     <p>一旦 <module>mod_info</module> がサーバに読み込まれると、
64     提供しているハンドラ機能はディレクトリ毎の設定ファイル (<em>例えば</em>
65     .htaccess) を含む <em>すべて</em>の設定ファイルで有効になります。
66     このモジュールを有効にするときはセキュリティの問題を考慮する必要が
67     あるでしょう。</p>
68
69     <p>特に、このモジュールはシステムパス、ユーザ名/パスワード、
70     データベース名など、他の Apache モジュールの設定ディレクティブから
71     セキュリティ上微妙な情報を漏らす可能性があります。
72     ですから、このモジュールはきちんとアクセス制御された環境で<strong>のみ</strong>、
73     注意して使ってください。</p>
74
75     <p>設定情報へのアクセスを制限するために、<module>mod_authz_host</module> を
76     使うのが良いでしょう。</p>
77       
78     <example><title>アクセス制御</title>
79       &lt;Location /server-info&gt;<br />
80       <indent>
81         SetHandler server-info<br />
82         Order allow,deny<br />
83         # Allow access from server itself<br />
84         Allow from 127.0.0.1<br />
85         # Additionally, allow access from local workstation<br />
86         Allow from 192.168.1.17<br />
87       </indent>
88       &lt;/Location&gt;
89     </example>
90 </section>
91
92 <section id="queries"><title>表示される情報の選択</title>
93     <p>デフォルトでは、サーバ情報はすべての有効なモジュールと、
94     各モジュールについて、モジュールが理解するディレクティブ、
95     実装している、フック、現時点での設定の関連するディレクティブに
96     なっています。</p>
97
98     <p><code>server-info</code> リクエストへクエリーを追加することで、
99     設定情報の他の表示形式を選ぶことができます。例えば、
100     <code>http://your.host.example.com/server-info?config</code> は
101     すべての設定ディレクティブを表示します。</p>
102     
103     <dl>
104         <dt><code>?&lt;module-name&gt;</code></dt>
105             <dd>指定されたモジュールに関連する情報のみ</dd>
106         <dt><code>?config</code></dt>
107             <dd>モジュールでソートせずに、設定ディレクティブのみ</dd>
108         <dt><code>?hooks</code></dt>
109             <dd>各モジュールが使用するフックのみ</dd>
110         <dt><code>?list</code></dt>
111             <dd>有効なモジュールの簡単なリストのみ</dd>
112         <dt><code>?server</code></dt>
113             <dd>基本サーバ情報のみ</dd>
114     </dl>
115 </section>
116
117 <section id="limitations"><title>既知の制限</title>
118     <p><module>mod_info</module> は、元の設定ファイルを読むのではなく、
119     既にパースされた設定を読み込むことで情報を提供します。従って、
120     パース済みの設定情報の木が生成される方法による制限がいくつかあります:</p>
121     <ul>
122       <li>パースされた設定に保存されずに、すぐに実行されるディレクティブは
123           一覧に現れません。これには
124           <directive module="core">ServerRoot</directive>,
125           <directive module="mod_so">LoadModule</directive>,
126           <directive module="mod_so">LoadFile</directive> があります。</li>
127       <li><directive module="core">Include</directive>,
128           <directive module="core">&lt;IfModule&gt;</directive>,
129           <directive module="core">&lt;IfDefine&gt;</directive>,
130           のような設定ファイル自身を制御するディレクティブは表示されません。
131           そのディレクティブの中にあり、有効になっているディレクティブは
132           表示されます。</li>
133       <li>コメントは表示されません。(これは仕様だと思ってください。)</li>
134       <li><code>.htaccess</code> ファイルの設定ディレクティブは表示されません
135           (永久的なサーバ設定の一部ではないからです)。</li>
136       <li><directive module="core">&lt;Directory&gt;</directive>
137           のようなコンテナディレクティブは普通に表示されますが、
138           <module>mod_info</module> は閉じタグの <directive module="core"
139           >&lt;/Directory&gt;</directive> などの数を知ることはできません。</li>
140       <li><module>mod_perl</module> のようなサードパーティモジュール
141            のディレクティブは表示されないかもしれません。</li>
142     </ul>
143 </section>
144
145 <directivesynopsis>
146 <name>AddModuleInfo</name>
147 <description>server-info ハンドラにより表示されるモジュールの情報に
148 追加の情報を付け加える</description>
149 <syntax>AddModuleInfo <var>module-name</var> <var>string</var></syntax>
150 <contextlist><context>server config</context><context>virtual host</context>
151 </contextlist>
152 <compatibility>Apache 1.3 以降</compatibility>
153
154 <usage>
155     <p>これは、<var>string</var> の内容がモジュール <var>module-name</var>
156     の<strong>追加情報</strong> として HTML
157     として解釈され、表示されるようにします。例:</p>
158
159     <example>
160       AddModuleInfo mod_deflate.c 'See &lt;a \<br />
161       <indent>
162         href="http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html"&gt;\<br />
163         http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html&lt;/a&gt;'
164       </indent>
165     </example>
166 </usage>
167
168 </directivesynopsis>
169 </modulesynopsis>