]> granicus.if.org Git - apache/blob - docs/manual/configuring.html.ja.utf8
xforms
[apache] / docs / manual / configuring.html.ja.utf8
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>設定ファイル - 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 id="manual-page"><div id="page-header">
17 <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>
18 <p class="apache">Apache HTTP サーバ バージョン 2.5</p>
19 <img alt="" src="./images/feather.gif" /></div>
20 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="./images/left.gif" /></a></div>
21 <div id="path">
22 <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.5</a></div><div id="page-content"><div id="preamble"><h1>設定ファイル</h1>
23 <div class="toplang">
24 <p><span>翻訳済み言語: </span><a href="./de/configuring.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
25 <a href="./en/configuring.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
26 <a href="./fr/configuring.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
27 <a href="./ja/configuring.html" title="Japanese">&nbsp;ja&nbsp;</a> |
28 <a href="./ko/configuring.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
29 <a href="./tr/configuring.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
30 </div>
31 <div class="outofdate">この日本語訳はすでに古くなっている
32             可能性があります。
33             最近更新された内容を見るには英語版をご覧下さい。
34         </div>
35
36 <p>この文書では、Apache HTTP サーバを設定するのに使用するファイルについて
37 記述しています。</p>
38 </div>
39 <div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#main">メインの設定ファイル</a></li>
40 <li><img alt="" src="./images/down.gif" /> <a href="#syntax">設定ファイルの構文</a></li>
41 <li><img alt="" src="./images/down.gif" /> <a href="#modules">モジュール</a></li>
42 <li><img alt="" src="./images/down.gif" /> <a href="#scope">ディレクティブの適用範囲</a></li>
43 <li><img alt="" src="./images/down.gif" /> <a href="#htaccess">.htaccess ファイル</a></li>
44 </ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
45 <div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
46 <div class="section">
47 <h2><a name="main" id="main">メインの設定ファイル</a></h2>
48     
49     <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_mime.html">mod_mime</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/core.html#ifdefine">&lt;IfDefine&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#include">Include</a></code></li><li><code class="directive"><a href="./mod/mod_mime.html#typesconfig">TypesConfig</a></code></li></ul></td></tr></table>
50
51     <p>Apache は <a href="mod/directives.html">ディレクティブ</a> を設定ファイルに平文で書くことにより設定します。
52     メインの設定ファイルは普通は <code>httpd.conf</code> という名前です。
53     このファイルの位置はコンパイル時に設定されますが、コマンドラインの
54     <code>-f</code> フラグにより上書きできます。
55     また、他の設定ファイルを <code class="directive"><a href="./mod/core.html#include">Include</a></code>
56     ディレクティブによって追加でき、ワイルドカードを使用して多数の
57     設定ファイルを追加することができます。
58     どんなディレクティブも、これらの設定ファイルどれにでも入れることができます。
59     Apache は起動時か再起動時のみメイン設定ファイルの変更を認識します。</p>
60
61     <p>サーバは MIME
62     ドキュメントタイプを含んでいるファイルも読み込みます。ファイル名は
63     <code class="directive"><a href="./mod/mod_mime.html#typesconfig">TypesConfig</a></code>
64     で設定され、デフォルトでは <code>mime.types</code>
65     になっています。</p>
66   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
67 <div class="section">
68 <h2><a name="syntax" id="syntax">設定ファイルの構文</a></h2>
69     
70
71     <p>Apache の設定ファイルは 1 行に 1 つのディレクティブからなります。
72     バックスラッシュ "\" はディレクティブが次の行に継続していることを
73     示すために行の最後の文字として使われているかもしれません。
74     行の最後とバックスラッシュの間に他の文字や空白があってはいけません。
75     </p>
76
77     <p>設定ファイルのディレクティブは大文字小文字を区別しませんが、
78     引数にはしばしば区別するものがあります。ハッシュ文字 "#"
79     で始まる行はコメントと見なされて無視されます。
80     設定ディレクティブと同一行の末尾にコメントが含まれていては<strong>いけません</strong>。ディレクティブの前の空行と空白は無視されますので、
81     わかりやすくするためにディレクティブをインデントしても構いません。
82     </p>
83
84     <p>設定ファイルの構文エラーは、
85     <code>apachectl configtest</code>
86     かコマンドラインオプション
87     <code>-t</code> を使って調べられます。</p>
88   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
89 <div class="section">
90 <h2><a name="modules" id="modules">モジュール</a></h2>
91     
92
93     <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_so.html">mod_so</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/core.html#ifmodule">&lt;IfModule&gt;</a></code></li><li><code class="directive"><a href="./mod/mod_so.html#loadmodule">LoadModule</a></code></li></ul></td></tr></table>
94
95     <p>Apache はモジュール化されたサーバです。
96     コアサーバには最も基本的な機能だけが含まれています。拡張機能は
97     Apache にロードされる<a href="mod/">モジュール</a>として利用可能です。デフォルトでは、コンパイル時にモジュールの
98     <a href="mod/module-dict.html#Status">Base</a> セット (基本セット) が
99     サーバに含まれます。サーバが<a href="dso.html">動的ロード</a>モジュールを使うようにコンパイルされている場合は、
100     モジュールを別にコンパイルして、いつでも
101     <code class="directive"><a href="./mod/mod_so.html#loadmodule">LoadModule</a></code>
102     ディレクティブを使って追加できます。
103     そうでない場合は、モジュールの追加や削除をするためには Apache
104     を再コンパイルする必要があります。設定ディレクティブは <code class="directive"><a href="./mod/core.html#ifmodule">&lt;IfModule&gt;</a></code>
105     ブロックに入れることで特定のモジュールが存在するときだけ
106     設定ファイルに含まれるようにすることができます。</p>
107
108     <p>コマンドラインオプション <code>-l</code> を使って現時点で
109     どのモジュールがサーバにコンパイルされているかを知ることができます。</p>
110   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
111 <div class="section">
112 <h2><a name="scope" id="scope">ディレクティブの適用範囲</a></h2>
113     
114
115     <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td /><td><ul><li><code class="directive"><a href="./mod/core.html#directory">&lt;Directory&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#files">&lt;Files&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#filesmatch">&lt;FilesMatch&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#location">&lt;Location&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#locationmatch">&lt;LocationMatch&gt;</a></code></li><li><code class="directive"><a href="./mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code></li></ul></td></tr></table>
116
117     <p>メイン設定ファイルにあるディレクティブはサーバ全体に適用されます。
118     サーバの一部分の設定だけを変更したい場合は <code class="directive"><a href="./mod/core.html#directory">&lt;Directory&gt;</a></code>, <code class="directive"><a href="./mod/core.html#directorymatch">&lt;DirectoryMatch&gt;</a></code>, <code class="directive"><a href="./mod/core.html#files">&lt;Files&gt;</a></code>, <code class="directive"><a href="./mod/core.html#filesmatch">&lt;FilesMatch&gt;</a></code>, <code class="directive"><a href="./mod/core.html#location">&lt;Location&gt;</a></code>, <code class="directive"><a href="./mod/core.html#locationmatch">&lt;LocationMatch&gt;</a></code>
119     セクションの中に置くことで適用範囲を決められます。
120     これらのセクションはその中にあるディレクティブの適用範囲を
121     特定のファイルシステムの位置や URL に限定します。
122     非常に細粒度の設定を可能にするために、
123     セクションを入れ子にすることもできます。</p>
124
125     <p>Apache は同時に多くの違うウェブサイトを扱う能力があります。
126     これは <a href="vhosts/">バーチャルホスト</a> と呼ばれています。
127     特定のウェブサイトにのみ適用されるようにするために、
128     ディレクティブは
129     <code class="directive"><a href="./mod/core.html#virtualhost">&lt;VirtualHost&gt;</a></code>
130     セクションの中に置くことでも適用範囲を変えることができます。</p>
131
132     <p>ほとんどのディレクティブはどのセクションにでも書けますが、
133     中にはコンテキストによっては意味をなさないものもあります。
134     例えば、プロセスの作成を制御しているディレクティブはメインサーバの
135     コンテキストにのみ書くことができます。
136     どのディレクティブをどのセクションに書くことができるかを知るためには
137     ディレクティブの <a href="mod/directive-dict.html#Context">コンテキスト</a> を調べてください。詳しい情報は、
138     <a href="sections.html">Directory, Location, Files
139     セクションの動作法</a>にあります。</p>
140   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
141 <div class="section">
142 <h2><a name="htaccess" id="htaccess">.htaccess ファイル</a></h2>
143     
144
145     <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td /><td><ul><li><code class="directive"><a href="./mod/core.html#accessfilename">AccessFileName</a></code></li><li><code class="directive"><a href="./mod/core.html#allowoverride">AllowOverride</a></code></li></ul></td></tr></table>
146
147     <p>Apache ではウェブツリーの中に置かれた特別なファイルを使って
148     非中央集権的な設定管理をできます。その特別なファイルは普通は
149     <code>.htaccess</code> という名前で、
150     <code class="directive"><a href="./mod/core.html#accessfilename">AccessFileName</a></code>
151     ディレクティブでどんな名前にでも指定できます。
152     <code>.htaccess</code>
153     ファイルに書かれたディレクティブはファイルを置いた
154     ディレクトリとその全てのサブディレクトリに適用されます。
155     <code>.htaccess</code> ファイルは、メインの設定ファイルと同じ
156     構文を使います。
157     <code>.htaccess</code>
158     ファイルはすべてのリクエストで読み込まれるため、
159     変更はすぐに反映されます。</p>
160
161     <p>どのディレクティブが <code>.htaccess</code>
162     ファイルに書けるかを調べるには、ディレクティブの<a href="mod/directive-dict.html#Context">コンテキスト</a>
163     を調べてください。サーバ管理者はさらにメイン設定ファイルの
164     <code class="directive"><a href="./mod/core.html#allowoverride">AllowOverride</a></code>
165     を設定することでどのディレクティブを <code>.htaccess</code>
166     ファイルに書けるようにするかを制御することができます。</p>
167
168     <p><code>.htaccess</code> ファイルに関する詳しい情報は
169     <a href="howto/htaccess.html">.htaccess チュートリアル</a>
170     を参照してください。</p>
171   </div></div>
172 <div class="bottomlang">
173 <p><span>翻訳済み言語: </span><a href="./de/configuring.html" hreflang="de" rel="alternate" title="Deutsch">&nbsp;de&nbsp;</a> |
174 <a href="./en/configuring.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
175 <a href="./fr/configuring.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
176 <a href="./ja/configuring.html" title="Japanese">&nbsp;ja&nbsp;</a> |
177 <a href="./ko/configuring.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
178 <a href="./tr/configuring.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
179 </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>
180 <script type="text/javascript"><!--//--><![CDATA[//><!--
181 var comments_shortname = 'httpd';
182 var comments_identifier = 'http://httpd.apache.org/docs/trunk/configuring.html';
183 (function(w, d) {
184     if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
185         d.write('<div id="comments_thread"><\/div>');
186         var s = d.createElement('script');
187         s.type = 'text/javascript';
188         s.async = true;
189         s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
190         (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
191     }
192     else {
193         d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
194     }
195 })(window, document);
196 //--><!]]></script></div><div id="footer">
197 <p class="apache">Copyright 2012 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
198 <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[//><!--
199 if (typeof(prettyPrint) !== 'undefined') {
200     prettyPrint();
201 }
202 //--><!]]></script>
203 </body></html>