github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_info.html.ja.utf8 (about) 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 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>mod_info - Apache HTTP サーバ バージョン 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <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" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_info.html" rel="canonical" /></head> 18 <body> 19 <div id="page-header"> 20 <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> 21 <p class="apache">Apache HTTP サーバ バージョン 2.2</p> 22 <img alt="" src="../images/feather.gif" /></div> 23 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 24 <div id="path"> 25 <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> 26 <div id="page-content"> 27 <div class="retired"><h4>Please note</h4> 28 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 29 <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_info.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache モジュール mod_info</h1> 30 <div class="toplang"> 31 <p><span>翻訳済み言語: </span><a href="../en/mod/mod_info.html" hreflang="en" rel="alternate" title="English"> en </a> | 32 <a href="../ja/mod/mod_info.html" title="Japanese"> ja </a> | 33 <a href="../ko/mod/mod_info.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 34 </div> 35 <div class="outofdate">この日本語訳はすでに古くなっている 36 可能性があります。 37 最近更新された内容を見るには英語版をご覧下さい。 38 </div> 39 <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>サーバの設定の包括的な概観を提供する</td></tr> 40 <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 41 <tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>info_module</td></tr> 42 <tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_info.c</td></tr></table> 43 <h3>概要</h3> 44 45 <p><code class="module"><a href="../mod/mod_info.html">mod_info</a></code> を設定するには、以下を <code>httpd.conf</code> 46 ファイルに加えます。</p> 47 48 <div class="example"><p><code> 49 <Location /server-info><br /> 50 <span class="indent"> 51 SetHandler server-info<br /> 52 </span> 53 </Location> 54 </code></p></div> 55 56 <p><code class="directive"><a href="../mod/core.html#location"><Location></a></code> 57 の中で <code class="module"><a href="../mod/mod_access.html">mod_access</a></code> を使って、サーバ設定情報への 58 アクセスを制限したいと思うかもしれません :</p> 59 60 <div class="example"><p><code> 61 <Location /server-info><br /> 62 <span class="indent"> 63 SetHandler server-info<br /> 64 Order deny,allow<br /> 65 Deny from all<br /> 66 Allow from yourcompany.com<br /> 67 </span> 68 </Location> 69 </code></p></div> 70 71 <p>一旦設定すると、<code>http://your.host.example.com/server-info</code> 72 にアクセスすることでサーバの情報を得られるようになります。</p> 73 </div> 74 <div id="quickview"><h3>トピック</h3> 75 <ul id="topics"> 76 <li><img alt="" src="../images/down.gif" /> <a href="#security">Security Issues</a></li> 77 <li><img alt="" src="../images/down.gif" /> <a href="#queries">表示される情報の選択</a></li> 78 <li><img alt="" src="../images/down.gif" /> <a href="#limitations">既知の制限</a></li> 79 </ul><h3 class="directives">ディレクティブ</h3> 80 <ul id="toc"> 81 <li><img alt="" src="../images/down.gif" /> <a href="#addmoduleinfo">AddModuleInfo</a></li> 82 </ul> 83 <ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 84 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 85 <div class="section"> 86 <h2><a name="security" id="security">Security Issues</a></h2> 87 <p>一旦 <code class="module"><a href="../mod/mod_info.html">mod_info</a></code> がサーバに読み込まれると、 88 提供しているハンドラ機能はディレクトリ毎の設定ファイル (<em>例えば</em> 89 .htaccess) を含む <em>すべて</em>の設定ファイルで有効になります。 90 このモジュールを有効にするときはセキュリティの問題を考慮する必要が 91 あるでしょう。</p> 92 93 <p>特に、このモジュールはシステムパス、ユーザ名/パスワード、 94 データベース名など、他の Apache モジュールの設定ディレクティブから 95 セキュリティ上微妙な情報を漏らす可能性があります。 96 ですから、このモジュールはきちんとアクセス制御された環境で<strong>のみ</strong>、 97 注意して使ってください。</p> 98 99 <p>設定情報へのアクセスを制限するために、<code class="module"><a href="../mod/mod_authz_host.html">mod_authz_host</a></code> を 100 使うのが良いでしょう。</p> 101 102 <div class="example"><h3>アクセス制御</h3><p><code> 103 <Location /server-info><br /> 104 <span class="indent"> 105 SetHandler server-info<br /> 106 Order allow,deny<br /> 107 # Allow access from server itself<br /> 108 Allow from 127.0.0.1<br /> 109 # Additionally, allow access from local workstation<br /> 110 Allow from 192.168.1.17<br /> 111 </span> 112 </Location> 113 </code></p></div> 114 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 115 <div class="section"> 116 <h2><a name="queries" id="queries">表示される情報の選択</a></h2> 117 <p>デフォルトでは、サーバ情報はすべての有効なモジュールと、 118 各モジュールについて、モジュールが理解するディレクティブ、 119 実装している、フック、現時点での設定の関連するディレクティブに 120 なっています。</p> 121 122 <p><code>server-info</code> リクエストへクエリーを追加することで、 123 設定情報の他の表示形式を選ぶことができます。例えば、 124 <code>http://your.host.example.com/server-info?config</code> は 125 すべての設定ディレクティブを表示します。</p> 126 127 <dl> 128 <dt><code>?<module-name></code></dt> 129 <dd>指定されたモジュールに関連する情報のみ</dd> 130 <dt><code>?config</code></dt> 131 <dd>モジュールでソートせずに、設定ディレクティブのみ</dd> 132 <dt><code>?hooks</code></dt> 133 <dd>各モジュールが使用するフックのみ</dd> 134 <dt><code>?list</code></dt> 135 <dd>有効なモジュールの簡単なリストのみ</dd> 136 <dt><code>?server</code></dt> 137 <dd>基本サーバ情報のみ</dd> 138 </dl> 139 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 140 <div class="section"> 141 <h2><a name="limitations" id="limitations">既知の制限</a></h2> 142 <p><code class="module"><a href="../mod/mod_info.html">mod_info</a></code> は、元の設定ファイルを読むのではなく、 143 既にパースされた設定を読み込むことで情報を提供します。従って、 144 パース済みの設定情報の木が生成される方法による制限がいくつかあります:</p> 145 <ul> 146 <li>パースされた設定に保存されずに、すぐに実行されるディレクティブは 147 一覧に現れません。これには 148 <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code>, 149 <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>, 150 <code class="directive"><a href="../mod/mod_so.html#loadfile">LoadFile</a></code> があります。</li> 151 <li><code class="directive"><a href="../mod/core.html#include">Include</a></code>, 152 <code class="directive"><a href="../mod/core.html#<ifmodule>"><IfModule></a></code>, 153 <code class="directive"><a href="../mod/core.html#<ifdefine>"><IfDefine></a></code>, 154 のような設定ファイル自身を制御するディレクティブは表示されません。 155 そのディレクティブの中にあり、有効になっているディレクティブは 156 表示されます。</li> 157 <li>コメントは表示されません。(これは仕様だと思ってください。)</li> 158 <li><code>.htaccess</code> ファイルの設定ディレクティブは表示されません 159 (永久的なサーバ設定の一部ではないからです)。</li> 160 <li><code class="directive"><a href="../mod/core.html#<directory>"><Directory></a></code> 161 のようなコンテナディレクティブは普通に表示されますが、 162 <code class="module"><a href="../mod/mod_info.html">mod_info</a></code> は閉じタグの <code class="directive"><a href="../mod/core.html#</directory>"></Directory></a></code> などの数を知ることはできません。</li> 163 <li><code class="module"><a href="../mod/mod_perl.html">mod_perl</a></code> のようなサードパーティモジュール 164 のディレクティブは表示されないかもしれません。</li> 165 </ul> 166 </div> 167 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 168 <div class="directive-section"><h2><a name="AddModuleInfo" id="AddModuleInfo">AddModuleInfo</a> <a name="addmoduleinfo" id="addmoduleinfo">ディレクティブ</a></h2> 169 <table class="directive"> 170 <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>server-info ハンドラにより表示されるモジュールの情報に 171 追加の情報を付け加える</td></tr> 172 <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddModuleInfo <var>module-name</var> <var>string</var></code></td></tr> 173 <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 174 <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 175 <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_info</td></tr> 176 <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Apache 1.3 以降</td></tr> 177 </table> 178 <p>これは、<var>string</var> の内容がモジュール <var>module-name</var> 179 の<strong>追加情報</strong> として HTML 180 として解釈され、表示されるようにします。例:</p> 181 182 <div class="example"><p><code> 183 AddModuleInfo mod_deflate.c 'See <a \<br /> 184 <span class="indent"> 185 href="http://www.apache.org/docs/2.2/mod/mod_deflate.html">\<br /> 186 http://www.apache.org/docs/2.2/mod/mod_deflate.html</a>' 187 </span> 188 </code></p></div> 189 190 </div> 191 </div> 192 <div class="bottomlang"> 193 <p><span>翻訳済み言語: </span><a href="../en/mod/mod_info.html" hreflang="en" rel="alternate" title="English"> en </a> | 194 <a href="../ja/mod/mod_info.html" title="Japanese"> ja </a> | 195 <a href="../ko/mod/mod_info.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 196 </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&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> 197 <script type="text/javascript"><!--//--><![CDATA[//><!-- 198 var comments_shortname = 'httpd'; 199 var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_info.html'; 200 (function(w, d) { 201 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 202 d.write('<div id="comments_thread"><\/div>'); 203 var s = d.createElement('script'); 204 s.type = 'text/javascript'; 205 s.async = true; 206 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 207 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 208 } 209 else { 210 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 211 } 212 })(window, document); 213 //--><!]]></script></div><div id="footer"> 214 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 215 <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[//><!-- 216 if (typeof(prettyPrint) !== 'undefined') { 217 prettyPrint(); 218 } 219 //--><!]]></script> 220 </body></html>