mirror of
https://github.com/apache/httpd.git
synced 2025-07-30 20:03:10 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331236 13f79535-47bb-0310-9956-ffa450edef68
170 lines
7.7 KiB
XML
170 lines
7.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
|
|
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
|
|
<!-- English Revision: 450473:1331006 (outdated) -->
|
|
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<modulesynopsis metafile="mod_info.xml.meta">
|
|
|
|
<name>mod_info</name>
|
|
<description>サーバの設定の包括的な概観を提供する</description>
|
|
<status>Extension</status>
|
|
<sourcefile>mod_info.c</sourcefile>
|
|
<identifier>info_module</identifier>
|
|
|
|
<summary>
|
|
<p><module>mod_info</module> を設定するには、以下を <code>httpd.conf</code>
|
|
ファイルに加えます。</p>
|
|
|
|
<example>
|
|
<Location /server-info><br />
|
|
<indent>
|
|
SetHandler server-info<br />
|
|
</indent>
|
|
</Location>
|
|
</example>
|
|
|
|
<p><directive type="section" module="core">Location</directive>
|
|
の中で <module>mod_access</module> を使って、サーバ設定情報への
|
|
アクセスを制限したいと思うかもしれません :</p>
|
|
|
|
<example>
|
|
<Location /server-info><br />
|
|
<indent>
|
|
SetHandler server-info<br />
|
|
Order deny,allow<br />
|
|
Deny from all<br />
|
|
Allow from yourcompany.com<br />
|
|
</indent>
|
|
</Location>
|
|
</example>
|
|
|
|
<p>一旦設定すると、<code>http://your.host.example.com/server-info</code>
|
|
にアクセスすることでサーバの情報を得られるようになります。</p>
|
|
</summary>
|
|
|
|
<section id="security"><title>Security Issues</title>
|
|
<p>一旦 <module>mod_info</module> がサーバに読み込まれると、
|
|
提供しているハンドラ機能はディレクトリ毎の設定ファイル (<em>例えば</em>
|
|
.htaccess) を含む <em>すべて</em>の設定ファイルで有効になります。
|
|
このモジュールを有効にするときはセキュリティの問題を考慮する必要が
|
|
あるでしょう。</p>
|
|
|
|
<p>特に、このモジュールはシステムパス、ユーザ名/パスワード、
|
|
データベース名など、他の Apache モジュールの設定ディレクティブから
|
|
セキュリティ上微妙な情報を漏らす可能性があります。
|
|
ですから、このモジュールはきちんとアクセス制御された環境で<strong>のみ</strong>、
|
|
注意して使ってください。</p>
|
|
|
|
<p>設定情報へのアクセスを制限するために、<module>mod_authz_host</module> を
|
|
使うのが良いでしょう。</p>
|
|
|
|
<example><title>アクセス制御</title>
|
|
<Location /server-info><br />
|
|
<indent>
|
|
SetHandler server-info<br />
|
|
Order allow,deny<br />
|
|
# Allow access from server itself<br />
|
|
Allow from 127.0.0.1<br />
|
|
# Additionally, allow access from local workstation<br />
|
|
Allow from 192.168.1.17<br />
|
|
</indent>
|
|
</Location>
|
|
</example>
|
|
</section>
|
|
|
|
<section id="queries"><title>表示される情報の選択</title>
|
|
<p>デフォルトでは、サーバ情報はすべての有効なモジュールと、
|
|
各モジュールについて、モジュールが理解するディレクティブ、
|
|
実装している、フック、現時点での設定の関連するディレクティブに
|
|
なっています。</p>
|
|
|
|
<p><code>server-info</code> リクエストへクエリーを追加することで、
|
|
設定情報の他の表示形式を選ぶことができます。例えば、
|
|
<code>http://your.host.example.com/server-info?config</code> は
|
|
すべての設定ディレクティブを表示します。</p>
|
|
|
|
<dl>
|
|
<dt><code>?<module-name></code></dt>
|
|
<dd>指定されたモジュールに関連する情報のみ</dd>
|
|
<dt><code>?config</code></dt>
|
|
<dd>モジュールでソートせずに、設定ディレクティブのみ</dd>
|
|
<dt><code>?hooks</code></dt>
|
|
<dd>各モジュールが使用するフックのみ</dd>
|
|
<dt><code>?list</code></dt>
|
|
<dd>有効なモジュールの簡単なリストのみ</dd>
|
|
<dt><code>?server</code></dt>
|
|
<dd>基本サーバ情報のみ</dd>
|
|
</dl>
|
|
</section>
|
|
|
|
<section id="limitations"><title>既知の制限</title>
|
|
<p><module>mod_info</module> は、元の設定ファイルを読むのではなく、
|
|
既にパースされた設定を読み込むことで情報を提供します。従って、
|
|
パース済みの設定情報の木が生成される方法による制限がいくつかあります:</p>
|
|
<ul>
|
|
<li>パースされた設定に保存されずに、すぐに実行されるディレクティブは
|
|
一覧に現れません。これには
|
|
<directive module="core">ServerRoot</directive>,
|
|
<directive module="mod_so">LoadModule</directive>,
|
|
<directive module="mod_so">LoadFile</directive> があります。</li>
|
|
<li><directive module="core">Include</directive>,
|
|
<directive module="core"><IfModule></directive>,
|
|
<directive module="core"><IfDefine></directive>,
|
|
のような設定ファイル自身を制御するディレクティブは表示されません。
|
|
そのディレクティブの中にあり、有効になっているディレクティブは
|
|
表示されます。</li>
|
|
<li>コメントは表示されません。(これは仕様だと思ってください。)</li>
|
|
<li><code>.htaccess</code> ファイルの設定ディレクティブは表示されません
|
|
(永久的なサーバ設定の一部ではないからです)。</li>
|
|
<li><directive module="core"><Directory></directive>
|
|
のようなコンテナディレクティブは普通に表示されますが、
|
|
<module>mod_info</module> は閉じタグの <directive module="core"
|
|
></Directory></directive> などの数を知ることはできません。</li>
|
|
<li><module>mod_perl</module> のようなサードパーティモジュール
|
|
のディレクティブは表示されないかもしれません。</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<directivesynopsis>
|
|
<name>AddModuleInfo</name>
|
|
<description>server-info ハンドラにより表示されるモジュールの情報に
|
|
追加の情報を付け加える</description>
|
|
<syntax>AddModuleInfo <var>module-name</var> <var>string</var></syntax>
|
|
<contextlist><context>server config</context><context>virtual host</context>
|
|
</contextlist>
|
|
<compatibility>Apache 1.3 以降</compatibility>
|
|
|
|
<usage>
|
|
<p>これは、<var>string</var> の内容がモジュール <var>module-name</var>
|
|
の<strong>追加情報</strong> として HTML
|
|
として解釈され、表示されるようにします。例:</p>
|
|
|
|
<example>
|
|
AddModuleInfo mod_deflate.c 'See <a \<br />
|
|
<indent>
|
|
href="http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html">\<br />
|
|
http://www.apache.org/docs/&httpd.docs;/mod/mod_deflate.html</a>'
|
|
</indent>
|
|
</example>
|
|
</usage>
|
|
|
|
</directivesynopsis>
|
|
</modulesynopsis>
|