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_autoindex - 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.min.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.4</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.4</a> &gt; <a href="./">モジュール</a></div>
24<div id="page-content">
25<div id="preamble"><h1>Apache モジュール mod_autoindex</h1>
26<div class="toplang">
27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_autoindex.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/fr/mod/mod_autoindex.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
29<a href="/ja/mod/mod_autoindex.html" title="Japanese">&nbsp;ja&nbsp;</a> |
30<a href="/ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
31<a href="/tr/mod/mod_autoindex.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
32</div>
33<div class="outofdate">この日本語訳はすでに古くなっている
34            可能性があります。
35            最近更新された内容を見るには英語版をご覧下さい。
36        </div>
37<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>Unix の <code>ls</code> コマンドや
38    Win32 の <code>dir</code> シェルコマンドに似た
39    ディレクトリインデックスを生成する</td></tr>
40<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
41<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>autoindex_module</td></tr>
42<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_autoindex.c</td></tr></table>
43<h3>概要</h3>
44
45      <p>ディレクトリのインデックスは二つの情報源のうちの
46      一つから生成できます:</p>
47
48    <ul>
49      <li>普通は <code>index.html</code> と呼ばれる
50      ユーザによって書かれたファイル。
51      <code class="directive"><a href="/mod/mod_dir.html#directoryindex">DirectoryIndex</a></code>
52      ディレクティブでこのファイル名を設定します。
53      これは <code class="module"><a href="/mod/mod_dir.html">mod_dir</a></code> で制御されます。</li>
54
55      <li>もしくは、サーバによって生成された一覧。
56      その他のディレクティブでこの一覧の書式を制御します。
57      <code class="directive"><a href="#addicon">AddIcon</a></code>, <code class="directive"><a href="#addiconbyencoding">AddIconByEncoding</a></code> と
58      <code class="directive"><a href="#addiconbytype">AddIconByType</a></code>
59      を使うことで、様々なファイルタイプに対してアイコン一覧を
60      セットします。つまり、リストされたファイル毎に、
61      ファイルにマッチした一番最初のアイコンが表示されます。
62      これらは <code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code> で制御されます。</li>
63    </ul>
64    <p>望むならば、自動インデックス生成を完全に除去 (あるいは置換)
65    できるように、この二つの機能は分離されています。</p>
66
67    <p>自動インデックス生成は <code>Options +Indexes</code>
68    を使うことで有効になります。詳細については、
69    <code class="directive"><a href="/mod/core.html#options">Options</a></code>
70    ディレクティブをご覧下さい。</p>
71
72    <p>もし <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>オプションが
73    <code class="directive"><a href="/mod/autoindex.html#indexoptions">IndexOptions</a></code>
74    ディレクティブに与えられているならば、
75    列の先頭は表示の順番を制御するリンクになります。
76    先頭のリンクを選択すると、一覧は再生成されて
77    その列の値でソートされます。
78    同じ先頭を続けて選択すると、交互に昇順と降順とになります。
79    これらの列の先頭のリンクは、
80    <code class="directive"><a href="#indexoptions">IndexOptions</a></code>
81    ディレクティブの
82    <code>SuppressColumnSorting</code>
83    オプションで消すことができます。</p>
84
85    <p>"Size" でソートした場合は、用いられるのは
86    <em>実際の</em>ファイルのサイズであって、
87    表示の値ではないことに注意してください -
88    たとえ両方ともが "1K" と表示されていたとしても、
89    1010 バイトのファイルは必ず 1011
90    バイトのファイルよりも前 (昇順の場合) に表示されます。</p>
91</div>
92<div id="quickview"><h3 class="directives">ディレクティブ</h3>
93<ul id="toc">
94<li><img alt="" src="/images/down.gif" /> <a href="#addalt">AddAlt</a></li>
95<li><img alt="" src="/images/down.gif" /> <a href="#addaltbyencoding">AddAltByEncoding</a></li>
96<li><img alt="" src="/images/down.gif" /> <a href="#addaltbytype">AddAltByType</a></li>
97<li><img alt="" src="/images/down.gif" /> <a href="#adddescription">AddDescription</a></li>
98<li><img alt="" src="/images/down.gif" /> <a href="#addicon">AddIcon</a></li>
99<li><img alt="" src="/images/down.gif" /> <a href="#addiconbyencoding">AddIconByEncoding</a></li>
100<li><img alt="" src="/images/down.gif" /> <a href="#addiconbytype">AddIconByType</a></li>
101<li><img alt="" src="/images/down.gif" /> <a href="#defaulticon">DefaultIcon</a></li>
102<li><img alt="" src="/images/down.gif" /> <a href="#headername">HeaderName</a></li>
103<li><img alt="" src="/images/down.gif" /> <a href="#indexheadinsert">IndexHeadInsert</a></li>
104<li><img alt="" src="/images/down.gif" /> <a href="#indexignore">IndexIgnore</a></li>
105<li><img alt="" src="/images/down.gif" /> <a href="#indexignorereset">IndexIgnoreReset</a></li>
106<li><img alt="" src="/images/down.gif" /> <a href="#indexoptions">IndexOptions</a></li>
107<li><img alt="" src="/images/down.gif" /> <a href="#indexorderdefault">IndexOrderDefault</a></li>
108<li><img alt="" src="/images/down.gif" /> <a href="#indexstylesheet">IndexStyleSheet</a></li>
109<li><img alt="" src="/images/down.gif" /> <a href="#readmename">ReadmeName</a></li>
110</ul>
111<h3>トピック</h3>
112<ul id="topics">
113<li><img alt="" src="/images/down.gif" /> <a href="#query">Autoindex リクエストクエリー引数</a></li>
114</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
115<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
116<div class="section">
117<h2><a name="query" id="query">Autoindex リクエストクエリー引数</a></h2>
118    
119
120    <p>Apache 2.0.23 で、
121    コラムソートのためにクエリー引数を再編成して、
122    新しいクエリーオプションのグループを導入しました。
123    出力に対するクライアントのすべての制御を効率的に抹消
124    できるように、
125    <code><a href="#indexoptions.ignoreclient">IndexOptions
126    IgnoreClient</a></code> が導入されました。</p>
127
128    <p>コラムソートのヘッダそれ自体が、
129    下記のソートクエリーオプションを付加する
130    自分自身を参照するリンクです。
131    下記のオプションのどれでも、
132    ディレクトリリソースへのリクエストに加えることができます。</p>
133
134    <ul>
135      <li><code>C=N</code> は、ファイル名でソートします。</li>
136
137      <li><code>C=M</code> は、更新日時、
138      ディレクトリ、ファイル名の順でソートします。</li>
139
140      <li><code>C=S</code> は、サイズ、
141      ディレクトリ、ファイル名の順でソートします。</li>
142
143      <li class="separate"><code>C=D</code> は、説明、
144      ディレクトリ、ファイル名の順でソートします。</li>
145
146      <li><code>O=A</code> は、昇順で表をソートします。</li>
147
148      <li class="separate"><code>O=D</code> は、降順で表をソートします。</li>
149
150      <li><code>F=0</code> は、単純な表の書式にします。
151      (FancyIndex ではありません。)</li>
152
153      <li><code>F=1</code> は、FancyIndex 
154      表示の表の書式にします。</li>
155
156      <li><code>F=2</code> は、表を HTML 
157      のテーブルを使った FancyIndex の書式にします。</li>
158
159      <li><code>V=0</code> 
160      は、バージョンによるソートを無効にします。</li>
161
162      <li class="separate"><code>V=1</code> 
163      は、バージョンによるソートを有効にします。</li>
164
165      <li><code>P=<var>pattern</var></code> 
166      は、与えられた <var>pattern</var>
167      に適合したファイルのみを表示します。</li>
168    </ul>
169
170    <p>"P (パターンの P)" クエリー引数は、
171    通常の <code class="directive"><a href="#indexignore">IndexIgnore</a></code>
172    ディレクティブが処理された<em>後</em>に検査され、
173    ファイル名全てが、他の autoindex
174    リスト処理と同様の判定基準下に置かれ続ける
175    ことに注意してください。
176    <code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code> のクエリー引数パーサ (解析) は、
177    認識不能なオプションにぶつかると即座に停止します。
178    クエリー引数は上の表に従って
179    正しい形式になっていなければなりません。</p>
180
181    <p>下の単純な例は、これらのクエリーオプションを
182    表します。これをそのまま切り取って HEADER.html 
183    ファイルに保存することもできます。
184    mod_autoindex が X=Go 入力にぶつかる前に
185    引数が全て解釈されるように、
186    未知の引数 "X" はリストの最後に置かれています。</p>
187
188    <div class="example"><p><code>
189      &lt;form action="" method="get"&gt;<br />
190      <span class="indent">
191        Show me a &lt;select name="F"&gt;<br />
192        <span class="indent">
193          &lt;option value="0"&gt; Plain list&lt;/option&gt;<br />
194          &lt;option value="1" selected="selected"&gt; Fancy list&lt;/option&gt;<br />
195          &lt;option value="2"&gt; Table list&lt;/option&gt;<br />
196        </span>
197        &lt;/select&gt;<br />
198        Sorted by &lt;select name="C"&gt;<br />
199        <span class="indent">
200          &lt;option value="N" selected="selected"&gt; Name&lt;/option&gt;<br />
201          &lt;option value="M"&gt; Date Modified&lt;/option&gt;<br />
202          &lt;option value="S"&gt; Size&lt;/option&gt;<br />
203          &lt;option value="D"&gt; Description&lt;/option&gt;<br />
204        </span>
205        &lt;/select&gt;<br />
206        &lt;select name="O"&gt;<br />
207        <span class="indent">
208          &lt;option value="A" selected="selected"&gt; Ascending&lt;/option&gt;<br />
209          &lt;option value="D"&gt; Descending&lt;/option&gt;<br />
210        </span>
211        &lt;/select&gt;<br />
212        &lt;select name="V"&gt;<br />
213        <span class="indent">
214          &lt;option value="0" selected="selected"&gt; in Normal order&lt;/option&gt;<br />
215          &lt;option value="1"&gt; in Version order&lt;/option&gt;<br />
216        </span>
217        &lt;/select&gt;<br />
218        Matching &lt;input type="text" name="P" value="*" /&gt;<br />
219        &lt;input type="submit" name="X" value="Go" /&gt;<br />
220      </span>
221      &lt;/form&gt;
222    </code></p></div>
223
224</div>
225<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
226<div class="directive-section"><h2><a name="AddAlt" id="AddAlt">AddAlt</a> <a name="addalt" id="addalt">ディレクティブ</a></h2>
227<table class="directive">
228<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>アイコンの代わりに
229表示される、ファイル名で選択された代替テキスト</td></tr>
230<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddAlt <var>string</var> <var>file</var> [<var>file</var>] ...</code></td></tr>
231<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
232<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
233<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
234<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
235</table>
236    <p><code class="directive">AddAlt</code> は、<code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
237    において、アイコンの代わりに表示する代替テキストを提供します。
238    <var>file</var> は、説明するファイルのファイル拡張子、
239    ファイル名の一部、ワイルドカード表現、完全なファイル名の
240    どれかになります。
241    <var>string</var> に空白がある場合は引用符  (<code>"</code>
242    か <code>'</code>) で囲む必要があります。
243    この文字列は、クライアントが画像を表示できない場合や
244    画像のロードを無効にしている場合や
245    アイコンの取得に失敗したときに表示されます。</p>
246
247    <div class="example"><h3>例</h3><p><code>
248      AddAlt "PDF file" *.pdf<br />
249      AddAlt Compressed *.gz *.zip *.Z
250    </code></p></div>
251
252</div>
253<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
254<div class="directive-section"><h2><a name="AddAltByEncoding" id="AddAltByEncoding">AddAltByEncoding</a> <a name="addaltbyencoding" id="addaltbyencoding">ディレクティブ</a></h2>
255<table class="directive">
256<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>アイコンの代わりに表示される、MIME 符号化方法で選択された
257代替テキスト</td></tr>
258<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddAltByEncoding <var>string</var> <var>MIME-encoding</var>
259[<var>MIME-encoding</var>] ...</code></td></tr>
260<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
261<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
262<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
263<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
264</table>
265    <p><code class="directive">AddAltByEncoding</code> は、
266    <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
267    において、アイコンの代わりに表示する代替文字列を提供します。
268    <var>MIME-encoding</var> は有効な符号化、例えば
269    <code>x-compress</code>
270    です。 
271    <var>string</var> に空白があるときは、引用符 (<code>"</code> か
272    <code>'</code>) で囲む必要があります。
273    この文字列は、クライアントが画像を表示できない場合や
274    画像のロードを無効にしている場合や
275    アイコンの取得に失敗したときに表示されます。</p>
276
277    <div class="example"><h3>例</h3><p><code>
278      AddAltByEncoding gzip x-gzip
279    </code></p></div>
280
281</div>
282<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
283<div class="directive-section"><h2><a name="AddAltByType" id="AddAltByType">AddAltByType</a> <a name="addaltbytype" id="addaltbytype">ディレクティブ</a></h2>
284<table class="directive">
285<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>アイコンの代わりに
286表示される、MIME タイプで選択された代替テキスト</td></tr>
287<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddAltByType <var>string</var> <var>MIME-type</var>
288[<var>MIME-type</var>] ...</code></td></tr>
289<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
290<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
291<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
292<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
293</table>
294    <p><code class="directive">AddAltByType</code> は、
295    <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
296    において、アイコンの代わりに表示する代替文字列を設定します。
297    <var>MIME-type</var> は有効なタイプ、例えば
298    <code>text/html</code>
299    です。
300    <var>string</var> に空白があるときは、引用符 (<code>"</code> か
301    <code>'</code>) で囲む必要があります。
302    この文字列は、クライアントが画像を表示できない場合や
303    画像のロードを無効にしている場合や
304    アイコンの取得に失敗したときに表示されます。</p>
305
306    <div class="example"><h3>例</h3><p><code>
307      AddAltByType 'plain text' text/plain
308    </code></p></div>
309
310</div>
311<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
312<div class="directive-section"><h2><a name="AddDescription" id="AddDescription">AddDescription</a> <a name="adddescription" id="adddescription">ディレクティブ</a></h2>
313<table class="directive">
314<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ファイルに対して表示する説明</td></tr>
315<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddDescription <var>string</var> <var>file</var> [<var>file</var>] ...</code></td></tr>
316<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
317<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
318<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
319<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
320</table>
321    <p><code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
322    において、ファイルに対して表示する説明を設定します。
323    <var>file</var> は説明するファイルのファイル拡張子、
324    ファイル名の一部、ワイルドカード表現、完全なファイル名の
325    どれかになります。
326    <var>string</var> は二重引用符 (<code>"</code>) で囲まれます。</p>
327
328    <div class="example"><h3>例</h3><p><code>
329      AddDescription "The planet Mars" /web/pics/mars.gif
330    </code></p></div>
331
332    <p>通常のデフォルトの説明領域は 23 バイトの幅です。
333    <code><a href="#indexoptions.suppressicon">IndexOptions SuppressIcon</a></code>
334    オプションで 6 バイト追加、
335    <code><a href="#indexoptions.suppresssize">IndexOptions SuppressSize</a></code>
336    オプションで 7 バイト追加、
337    <code><a href="#indexoptions.suppresslastmodified">IndexOptions SuppressLastModified</a></code>
338    オプションで 19 バイト追加されます。
339    ですから、デフォルトの説明コラムの最大幅は
340    55 バイトになります。</p>
341
342    <p>このコラムの大きさを上書きしたり、
343    説明が無制限長でもよいようにするための詳細に関しては、
344    <a href="#indexoptions.descriptionwidth">DescriptionWidth</a>
345    という
346    <code class="directive"><a href="#indexoptions">IndexOptions</a></code> 
347    のキーワードをご覧下さい。</p>
348
349    <div class="note"><h3>警告</h3>
350      <p><code class="directive">AddDescription</code> 
351      で定義された説明テキストは、タグや文字列といった
352      HTML マークアップを含むことができます。
353      もし、説明コラムの幅によってタグ付けされた要素が丸め込まれた
354       (太字の語句の最後が切れるといった) 場合、
355      出力結果は、ディレクトリ一覧の残りの部分に影響を与えるでしょう。</p>
356    </div>
357
358</div>
359<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
360<div class="directive-section"><h2><a name="AddIcon" id="AddIcon">AddIcon</a> <a name="addicon" id="addicon">ディレクティブ</a></h2>
361<table class="directive">
362<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ファイルに表示するアイコンを名前で選択</td></tr>
363<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddIcon <var>icon</var> <var>name</var>
364[<var>name</var>] ...</code></td></tr>
365<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
366<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
367<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
368<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
369</table>
370    <p><code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
371    において、
372    <var>name</var> で終わるファイルの隣に表示するアイコンを設定します。
373    <var>icon</var> は、(% でエスケープされた) アイコンへの相対 URL
374    か、他の書式 (<var>alttext</var>, <var>url</var>) です。
375    ここで <var>alttext</var>
376    は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
377    </p>
378
379    <p><var>name</var> は、ディレクトリに対応する <code>^^DIRECTORY^^</code>
380    か、空白行に対応する <code>^^BLANKICON^^</code>  (一覧が正しく表示されるために) か、
381    ファイル拡張子か、ワイルドカード表現か、ファイル名の一部か
382    完全なファイル名です。</p>
383
384    <div class="example"><h3>例</h3><p><code>
385      AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm<br />
386      AddIcon /icons/dir.xbm ^^DIRECTORY^^<br />
387      AddIcon /icons/backup.xbm *~
388    </code></p></div>
389
390    <p>もし可能なら、
391    <code class="directive">AddIcon</code>
392    より
393    <code class="directive"><a href="#addiconbytype">AddIconByType</a></code>
394    を優先的に使うべきでしょう。</p>
395
396</div>
397<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
398<div class="directive-section"><h2><a name="AddIconByEncoding" id="AddIconByEncoding">AddIconByEncoding</a> <a name="addiconbyencoding" id="addiconbyencoding">ディレクティブ</a></h2>
399<table class="directive">
400<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ファイルに表示するアイコンを MIME
401符号化方法で選択</td></tr>
402<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddIconByEncoding <var>icon</var> <var>MIME-encoding</var>
403[<var>MIME-encoding</var>] ...</code></td></tr>
404<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
405<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
406<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
407<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
408</table>
409    <p><code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
410    において、ファイルの隣に表示するアイコンを設定します。
411    <var>icon</var> は、(% でエスケープされた) アイコンへの相対 URL
412    か、他の書式 <code>(<var>alttext</var>, <var>url</var>)</code> です。
413    ここで <var>alttext</var>
414    は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
415    </p>
416
417    <p><var>MIME-encoding</var> は、有効なコンテントエンコーディング、
418    例えば <code>x-compress</code>です。</p>
419
420    <div class="example"><h3>例</h3><p><code>
421      AddIconByEncoding /icons/compress.xbm x-compress
422    </code></p></div>
423
424</div>
425<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
426<div class="directive-section"><h2><a name="AddIconByType" id="AddIconByType">AddIconByType</a> <a name="addiconbytype" id="addiconbytype">ディレクティブ</a></h2>
427<table class="directive">
428<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ファイルの隣に表示するアイコンを
429MIME タイプによって選択</td></tr>
430<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AddIconByType <var>icon</var> <var>MIME-type</var>
431[<var>MIME-type</var>] ...</code></td></tr>
432<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
433<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
434<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
435<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
436</table>
437    <p><code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
438    において、ファイルの隣に表示するアイコンを設定します。
439    <var>icon</var> は、(% でエスケープされた) アイコンへの相対 URL
440    か、他の書式 <code>(<var>alttext</var>, <var>url</var>)</code> です。
441    ここで <var>alttext</var>
442    は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
443    </p>
444
445    <p><var>MIME-type</var> は、要求されたタイプに該当する
446    ワイルドカード表現です。</p>
447
448    <div class="example"><h3>例</h3><p><code>
449      AddIconByType (IMG,/icons/image.xbm) image/*
450    </code></p></div>
451
452</div>
453<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
454<div class="directive-section"><h2><a name="DefaultIcon" id="DefaultIcon">DefaultIcon</a> <a name="defaulticon" id="defaulticon">ディレクティブ</a></h2>
455<table class="directive">
456<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>特定のアイコンが何も設定されていない時に
457ファイルに表示するアイコン</td></tr>
458<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>DefaultIcon <var>url-path</var></code></td></tr>
459<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
460<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
461<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
462<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
463</table>
464    <p><code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
465    において、
466    特定のアイコンがない場合にファイルに表示するアイコンを設定します。
467    <var>url-path</var> は、(% でエスケープされた) アイコンへの相対 URL
468    です。</p>
469
470    <div class="example"><h3>例</h3><p><code>
471      DefaultIcon /icon/unknown.xbm
472    </code></p></div>
473
474</div>
475<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
476<div class="directive-section"><h2><a name="HeaderName" id="HeaderName">HeaderName</a> <a name="headername" id="headername">ディレクティブ</a></h2>
477<table class="directive">
478<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>
479インデックス一覧の先頭に挿入されるファイルの名前</td></tr>
480<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>HeaderName <var>filename</var></code></td></tr>
481<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
482<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
483<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
484<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
485</table>
486    <p><code class="directive">HeaderName</code> 
487    ディレクティブは、
488    インデックス一覧の先頭に挿入するファイルの名前を設定します。
489    <var>Filename</var> は取り込むファイルの名前です。</p>
490
491    <div class="example"><h3>例</h3><p><code>
492      HeaderName HEADER.html
493    </code></p></div>
494
495    <div class="note">
496      <p>HeaderName も <code class="directive"><a href="#readmename">ReadmeName</a></code> 
497      も両方とも現在は、<var>filename</var> 
498      をインデックスされているディレクトリに用いられた URI
499      に対する相対 URI パスとして扱います。
500      <var>filename</var> がスラッシュで始まる場合は、
501      <code class="directive"><a href="/mod/core.html#documentroot">DocumentRoot</a></code>
502      からの相対パスとなります。</p>
503
504      <div class="example"><h3>例</h3><p><code>
505        HeaderName /include/HEADER.html
506      </code></p></div>
507
508      <p><var>filename</var> は
509      メジャーコンテントタイプが "<code>text/*</code>" 
510       (<em>例えば</em>、<code>text/html</code>, 
511      <code>text/plain</code> 等です。) 
512      のドキュメントとして解決
513      されなければなりません。これはつまり、
514      もし CGI スクリプトの実際のファイルタイプが
515      次のディレクティブのようにして実際の出力とは異なって
516      <code>text/html</code> としてマークされている場合、
517      <var>filename</var>
518      は CGI スクリプトを参照するかも知れない、
519      ということを意味します:</p>
520
521      <div class="example"><p><code>
522        AddType text/html .cgi
523      </code></p></div>
524
525      <p><code class="directive"><a href="/mod/core.html#options">Options</a></code> <code>MultiViews</code> が
526      有効になっている場合は、
527      <a href="/content-negotiation.html">コンテントネゴシエーション</a>
528      が行なわれます。
529      もし <var>filename</var> が (CGI スクリプトでない) 静的な 
530      <code>text/html</code> ドキュメントで解決され、
531      <code class="directive"><a href="/mod/core.html#options">options</a></code>
532      <code>Includes</code> か <code>IncludesNOEXEC</code>
533      が有効になっている場合は、
534      ファイルはサーバーサイドインクルードで処理されます
535      (<code class="module"><a href="/mod/mod_include.html">mod_include</a></code> ドキュメントを参照して下さい)。</p>
536    </div>
537
538    <p>もし <code class="directive">HeaderName</code> で指定されたファイルが
539    HTML ドキュメントの開始部分 (&lt;html&gt;, &lt;head&gt;, 
540    等) を含んでいたら、
541    <a href="#indexoptions.suppresshtmlpreamble"><code>IndexOptions
542    +SuppressHTMLPreamble</code></a>
543    を設定して、これらのタグが繰り返されないようにしたいと思うでしょう。</p>
544
545</div>
546<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
547<div class="directive-section"><h2><a name="IndexHeadInsert" id="IndexHeadInsert">IndexHeadInsert</a> <a name="indexheadinsert" id="indexheadinsert">ディレクティブ</a></h2>
548<table class="directive">
549<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>インデックスページの HEAD セクションにテキストを挿入する</td></tr>
550<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexHeadInsert <var>"markup ..."</var></code></td></tr>
551<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
552<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
553<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
554<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
555</table>
556    <p><code class="directive">IndexHeadInsert</code> ディレクティブを使って
557    インデックスとして生成されたHTMLの <var>&lt;head&gt;</var> セクションに
558    挿入する文字列を指定します。</p>
559    <div class="example"><h3>Example</h3><p><code>
560      
561      IndexHeadInsert "&lt;link rel=\"sitemap\" href=\"/sitemap.html\"&gt;"
562    </code></p></div>
563
564</div>
565<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
566<div class="directive-section"><h2><a name="IndexIgnore" id="IndexIgnore">IndexIgnore</a> <a name="indexignore" id="indexignore">ディレクティブ</a></h2>
567<table class="directive">
568<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ディレクトリ一覧を行なう際に無視すべき
569ファイルリストに追加</td></tr>
570<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexIgnore <var>file</var> [<var>file</var>] ...</code></td></tr>
571<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
572<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
573<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
574<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
575</table>
576    <p><code class="directive">IndexIgnore</code> ディレクティブは、
577    ディレクトリの一覧を行う際に無視すべきファイルリストに追加します。
578    <var>file</var> は、
579    シェル形式のワイルドカード表現か完全なファイル名です。
580    IndexIgnore が複数ある場合は、無視するリストに追加が行われ、
581    置換は行われません。デフォルトではリストには <code>.</code>
582    (カレントディレクトリ) が含まれています。</p>
583
584    <div class="example"><p><code>
585      IndexIgnore README .htaccess *.bak *~
586    </code></p></div>
587
588</div>
589<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
590<div class="directive-section"><h2><a name="IndexIgnoreReset" id="IndexIgnoreReset">IndexIgnoreReset</a> <a name="indexignorereset" id="indexignorereset">ディレクティブ</a></h2>
591<table class="directive">
592<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Empties the list of files to hide when listing
593a directory</td></tr>
594<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexIgnoreReset ON|OFF</code></td></tr>
595<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
596<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
597<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
598<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
599<tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>2.3.10 and later</td></tr>
600</table><p>このディレクティブの解説文書は
601            まだ翻訳されていません。英語版をご覧ください。
602            </p></div>
603<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
604<div class="directive-section"><h2><a name="IndexOptions" id="IndexOptions">IndexOptions</a> <a name="indexoptions" id="indexoptions">ディレクティブ</a></h2>
605<table class="directive">
606<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ディレクトリインデックスの様々な設定項目
607</td></tr>
608<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexOptions  [+|-]<var>option</var> [[+|-]<var>option</var>] ...</code></td></tr>
609<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
610<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
611<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
612<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
613</table>
614    <p><code class="directive">IndexOptions</code> 
615    は、ディレクトリインデックスの挙動を指定します。
616    <var>option</var> は次のどれかです:</p>
617
618    <dl>
619      <dt><a name="indexoptions.charset" id="indexoptions.charset">Charset=<var>character-set</var></a> (<em>Apache 2.0.61
620      以降</em>)</dt>
621
622      <dd><code>Charset</code> キーワードで、
623      生成されるページの文字セットを指定できます。
624      下位のファイルシステムが Unicode ベースかどうかに依存しますが、
625      デフォルト値は <var>ISO-8859-1</var> か <var>UTF-8</var>
626      になります。
627
628      <div class="example"><h3>Example:</h3><p><code>
629        IndexOptions Charset=UTF-8
630      </code></p></div>
631      </dd>
632
633      <dt><a name="indexoptions.type" id="indexoptions.type">Type=<var>MIME content-type</var></a> (<em>Apache 2.0.61
634      以降</em>)</dt>
635
636      <dd><code>Type</code> キーワードで、
637      生成されるページの MIME コンテントタイプを指定できます。
638      デフォルト値は <var>text/html</var> になります。
639
640      <div class="example"><h3>Example:</h3><p><code>
641        IndexOptions Type=text/plain
642      </code></p></div>
643      </dd>
644
645      <dt><a name="indexoptions.descriptionwidth" id="indexoptions.descriptionwidth">DescriptionWidth=[<var>n</var> | *]</a>
646      (<em>2.0.23 以降</em>)</dt>
647
648      <dd><code>DescriptionWidth</code> 
649      キーワードは説明コラムの幅を文字数で指定することができます。</dd>
650
651      <dd><code>-DescriptionWidth</code> (または非設定) で、
652      <code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code> が最適な幅を計算するようにできます。</dd>
653
654      <dd><code>DescriptionWidth=<var>n</var></code> 
655      で、コラム幅を <var>n</var> バイトに固定します。</dd>
656
657      <dd><code>DescriptionWidth=*</code> 
658      は、最長の説明に合わせて必要な長さまでコラムを延ばします。</dd>
659
660      <dd><strong>説明を丸め込んだ場合特有の危険については
661      <code class="directive"><a href="#adddescription">AddDescription</a></code>
662      セクションをお読み下さい。</strong></dd>
663
664      <dt><a name="indexoptions.fancyindexing" id="indexoptions.fancyindexing">FancyIndexing</a></dt>
665
666      <dd>飾り付きインデックスをオンにします。</dd>
667
668      <dt><a name="indexoptions.foldersfirst" id="indexoptions.foldersfirst">FoldersFirst</a>
669      (<em>2.0.23 以降</em>)</dt>
670
671      <dd>このオプションが有効になった場合、サブディレクトリの一覧は
672      <em>必ず</em>最初に現われて、通常のファイルはその後に続きます。
673      一覧は基本的には、ファイルとディレクトリの二つの部分に分けられて、
674      それぞれは別々にソートされ、その後サブディレクトリを先にして
675      表示が行なわれます。例えばソート順が名前の降順になっていて、
676      <code>FoldersFirst</code> が有効になっている場合は、
677      サブディレクトリ <code>Zed</code> はサブディレクトリ
678      <code>Beta</code> よりも前にリストされ、通常のファイル
679      <code>Gamma</code> や <code>Alpha</code>
680      よりも前にリストされます。<strong>このオプションは
681      <a href="#indexoptions.fancyindexing"><code>FancyIndexing</code></a>
682      も有効になっているときにのみ有効です。</strong></dd>
683
684      <dt><a name="indexoptions.htmltable" id="indexoptions.htmltable">HTMLTable</a> <em>(実験的、
685      Apache 2.0.23 以降)</em></dt>
686
687      <dd>この実験的なオプションは <code>FancyIndexing</code> とともに指定することで、
688      飾りの付いたディレクトリ一覧のためにテーブルを使った単純な表を作ります。
689      これは古いブラウザを混乱させるかもしれないことに注意してください。
690      WinNT やその他 utf-8 
691      が有効なプラットホームのように、ファイル名や説明テキストが
692      右読みになったり左読みになりえる場合は特に必要です。</dd>
693
694      <dt><a name="indexoptions.iconsarelinks" id="indexoptions.iconsarelinks">IconsAreLinks</a></dt>
695
696      <dd>これは、FancyIndexing において、
697      アイコンもファイル名へのリンクの一部にします。</dd>
698
699      <dt><a name="indexoptions.iconheight" id="indexoptions.iconheight">IconHeight[=<var>pixels</var>]</a></dt>
700
701      <dd>このオプションが、<code>IconWidth</code> とともに
702      使われている場合は、サーバはファイルアイコンのための
703      <code>img</code> タグに <code>height</code> と <code>width</code>
704      属性を取り込むようになります。
705      これによって、イメージ全てをロードし終わるまで待たなくても、
706      ブラウザはページレイアウトをあらかじめ計算することができます。
707      このオプションに何も値が与えられなければ、Apache
708      ソフトウェアで提供されているアイコンの標準の高さが
709      デフォルトなります。</dd>
710
711      <dt><a name="indexoptions.iconwidth" id="indexoptions.iconwidth">IconWidth[=<var>pixels</var>]</a></dt>
712
713      <dd>このオプションが、<code>IconHeight</code> とともに使われている場合は、
714      サーバはファイルアイコンのための <code>img</code>
715      タグに <code>height</code> と <code>width</code>
716      属性を取り込むようになります。
717      これによって、イメージ全てをロードし終わるまで待たなくても、
718      ブラウザはページレイアウトをあらかじめ計算することができます。
719      このオプションに何も値が与えられなければ、Apache
720      ソフトウェアで提供されているアイコンの標準の高さが
721      デフォルトなります。</dd>
722
723      <dt><a name="indexoptions.ignorecase" id="indexoptions.ignorecase">IgnoreCase</a></dt>
724
725      <dd>このオプションが有効であると、ファイル名は大文字小文字を区別せずにソートされます。
726      例えばファイル名が昇順でソートされ、<code>IgnoreCase</code> が有効であれば、
727      Zeta は alfa の後にリストされます
728      (注意: GAMMA は常に gamma の前になります)。</dd>
729
730      <dt><a name="indexoptions.ignoreclient" id="indexoptions.ignoreclient">IgnoreClient</a></dt>
731
732      <dd>このオプションで <code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code> は、
733      クライアントからの全てのクエリー変数を無視するようになります。
734      これはソート順も含みます。
735      (つまり <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code>
736      も有効になります。)</dd>
737
738      <dt><a name="indexoptions.namewidth" id="indexoptions.namewidth">NameWidth=[<var>n</var> 
739	       | *]</a></dt>
740
741      <dd><code>NameWidth</code> キーワードでファイル名コラムの幅をバイト数で
742      指定できます。</dd>
743
744      <dd><code>-NameWidth</code> (または非設定) で、
745      <code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code> が最適な幅を計算するようにできます。</dd>
746
747      <dd><code>NameWidth=<var>n</var></code> 
748      で、コラム幅を <var>n</var> バイトに固定します。</dd>
749
750      <dd><code>NameWidth=*</code>
751      は、必要な長さまでコラムを延ばします。</dd>
752
753      <dt><a name="indexoptions.scanhtmltitles" id="indexoptions.scanhtmltitles">ScanHTMLTitles</a></dt>
754
755      <dd>FancyIndexing のために、
756       HTML ドキュメントからタイトルを取り出すことを可能にします。
757      もしファイルに
758      <code class="directive"><a href="#adddescription">AddDescription</a></code>
759      で説明が与えられていなければ、
760      httpd は <code>title</code> タグの値を読むためにドキュメントを読み始めます。
761      これは CPU や disk に負荷をかけます。</dd>
762
763      <dt><a name="indexoptions.showforbidden" id="indexoptions.showforbidden">ShowForbidden</a></dt>
764
765      <dd>通常 Apache はサブリクエストの結果が<code>HTTP_UNAUTHORIZED</code> や
766      <code>HTTP_FORBIDDEN</code> のファイルは一覧に表示しません。
767      このオプションを指定すると、そのようなファイルも一覧に表示します。</dd>
768
769      <dt><a name="indexoptions.suppresscolumnsorting" id="indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></dt>
770
771      <dd>もし指定されていれば、Apache は
772      FancyIndexing で表示されているディレクトリ一覧での
773      コラムの先頭を、ソートのためのリンクにしなくなります。
774      デフォルトの挙動は、リンクとします。
775      コラムの先頭を選ぶとコラムの値に従ってディレクトリリストを
776      ソートします。
777      <strong>Apache 2.0.23 以前では、これは同時に
778      ソート文字列のためのクエリー引数の解析も無効にします。
779      </strong>
780      この挙動は Apache 2.0.23 では
781      <a href="#indexoptions.ignoreclient"><code>IndexOptions
782      IgnoreClient</code></a> で制御されるようになっています。</dd>
783
784      <dt><a name="indexoptions.suppressdescription" id="indexoptions.suppressdescription">SuppressDescription</a></dt>
785
786      <dd>これは FancyIndexing におけるファイルの説明を消去します。
787      デフォルトでは、説明は定義されておらず、
788      このオプションを使うと他のために 23
789      文字の空白を稼ぐことができます。 ファイルの説明に関する情報は、
790      <code class="directive"><a href="#adddescription">AddDescription</a></code> 
791      をご覧下さい。また、説明のコラムサイズを制限する
792      <code><a href="#indexoptions.descriptionwidth">DescriptionWidth</a></code>
793      インデックスオプションもご覧下さい。</dd>
794
795      <dt><a name="indexoptions.suppresshtmlpreamble" id="indexoptions.suppresshtmlpreamble">SuppressHTMLPreamble</a></dt>
796
797      <dd>通常、
798      <code class="directive"><a href="#headername">HeaderName</a></code>
799      ディレクティブで指定したファイルを
800      ディレクトリが実際に含んでいれば、標準的な HTML プリアンブル
801      (<code>&lt;html&gt;</code>, <code>&lt;head&gt;</code>, <em>等</em>) の後に、
802      モジュールはファイルの中身をインクルードします。
803      <code>SuppressHTMLPreamble</code> オプションは、
804      この挙動を無効にできて、
805      モジュールがヘッダーファイルの中身から表示を始めます。
806      この場合、ヘッダーファイルは正しい HTML
807      命令を含んでいなければなりません。
808      ヘッダーファイルが存在しない場合は、プリアンブルは通常通り
809      生成されます。</dd>
810
811      <dt><a name="indexoptions.suppressicon" id="indexoptions.suppressicon">SuppressIcon</a> (<em>Apache
812      2.0.23 以降</em>)</dt>
813
814      <dd>
815      これは FancyIndexing の一覧からアイコンを消去します。
816      <code>SuppressIcon</code> と <code>SuppressRules</code>
817      と組合わせることによって正しい HTML 3.2 の出力が得られます。
818      HTML 3.2 の最終規格は、 <code>img</code> と <code>hr</code>
819      が <code>pre</code> ブロックに入る (FancyIndexing 一覧で書式に使われています) 
820      ことを禁止しています。</dd>
821
822      <dt><a name="indexoptions.suppresslastmodified" id="indexoptions.suppresslastmodified">SuppressLastModified</a></dt>
823
824      <dd>FancyIndexing 一覧において最終更新日時の表示を消去します。</dd>
825
826      <dt><a name="indexoptions.suppressrules" id="indexoptions.suppressrules">SuppressRules</a>
827       (<em>Apache 2.0.23 以降</em>) </dt>
828
829      <dd>ディレクトリ一覧において水平区切り線 (<code>hr</code> タグ) を消去します。
830      <code>SuppressIcon</code> と <code>SuppressRules</code>
831      と組合わせることによって正しい HTML 3.2 の出力が得られます。
832      HTML 3.2 の最終規格は、 <code>img</code> と <code>hr</code>
833      が <code>pre</code> ブロックに入る (FancyIndexing 一覧で書式に使われています) 
834      ことを禁止しています。</dd>
835
836      <dt><a name="indexoptions.suppresssize" id="indexoptions.suppresssize">SuppressSize</a></dt>
837
838      <dd>FancyIndexing 一覧においてファイルサイズの表示を消去します。</dd>
839
840      <dt><a name="indexoptions.trackmodified" id="indexoptions.trackmodified">TrackModified</a>
841	       (<em>Apache 2.0.23 以降</em>)</dt>
842
843      <dd>これは HTTP ヘッダ中に、
844      ディレクトリの <code>Last-Modified</code> や 
845      <code>ETag</code> を含めます。
846      これは、オペレーティングシステムやファイルシステムが
847      適切な stat() の返り値を返す場合にのみ有効です。
848      いくつかの UNIX システム、OS2 の JFS や Win32 の NTFS
849      ボリュームはそうなっています。
850      例えば、OS2 と Win32 FAT ボリュームはそうではありません。
851      この機能が有効になると、クライアントやプロキシは
852      <code>HEAD</code> リクエストを行うことによって、
853      ファイル一覧の変化を追跡することができるようになります。
854      オペレーティングシステムによっては、新規ファイルや
855      移動ファイルは正しく追跡するけれども、
856      ディレクトリ中のファイルのサイズや日付は追跡しないということに
857      注意してください。
858      <strong>既に存在するファイルのサイズや日付のスタンプが変化しても、
859      全ての Unix プラットホームでは、
860      <code>Last-Modified</code> ヘッダーを更新しません。</strong>
861      もしこれが重要であれば、
862      このオプションを無効のままにしてください。</dd>
863
864      <dt><a name="indexoptions.versionsort" id="indexoptions.versionsort">VersionSort</a>
865      (<em>Apache 2.0a3 以降</em>)</dt>
866
867      <dd><code>VersionSort</code> キーワードはバージョン番号を含んだファイルが
868      自然な方法でソートされるようにします。
869      文字列は通常通りソートされ、
870      それ以外の、説明や名前中の数となる部分文字列は
871      その数値で比較されます。
872
873      <div class="example"><h3>例:</h3><p><code>
874        foo-1.7<br />
875        foo-1.7.2<br />
876        foo-1.7.12<br />
877        foo-1.8.2<br />
878        foo-1.8.2a<br />
879        foo-1.12
880      </code></p></div>
881
882      <p>番号が 0 から始まる場合は、端数と考えられます</p>
883
884      <div class="example"><p><code>
885        foo-1.001<br />
886        foo-1.002<br />
887        foo-1.030<br />
888        foo-1.04
889      </code></p></div>
890      </dd>
891
892      <dt><a name="indexoptions.xhtml" id="indexoptions.xhtml">XHTML</a>
893      (<em>Apache 2.0.49 以降</em>)</dt>
894
895      <dd><code>XHTML</code> キーワードを指定すると、<code class="module"><a href="/mod/mod_autoindex.html">mod_autoindex</a></code>
896      は HTML 3.2 の代わりに XHTML 1.0 のコードを出力するようになります。</dd>
897    </dl>
898
899   
900   <dl><dt>増減指定できる IndexOptions</dt>
901   <dd>
902     <p>Apache 1.3.3 では、
903     <code class="directive">IndexOptions</code> 
904     ディレクティブの扱いで幾つかの大きな変化が導入されました。
905     特に、</p>
906
907     <ul>
908     <li>一つのディレクトリに対する複数の
909     <code class="directive">IndexOptions</code> 
910     ディレクティブは、現在では一つにマージされます。
911
912     <div class="example"><p><code>
913       &lt;Directory /foo&gt;
914       <span class="indent">
915         IndexOptions HTMLTable<br />
916         IndexOptions SuppressColumnsorting
917       </span>
918       &lt;/Directory&gt;
919     </code></p></div>
920
921     <p>の結果は、次の指定と同一の結果になります。</p>
922
923     <div class="example"><p><code>
924       IndexOptions HTMLTable SuppressColumnsorting
925     </code></p></div>
926     </li>
927
928     <li>増減構文
929     (<em>すなわち</em>、'+' や '-'
930     の接頭辞が付くキーワード) の追加。</li>
931     </ul>
932
933     <p>'+' や '-' 接頭辞の付いたキーワードに出会うとそれは、
934     その時点での <code class="directive">IndexOptions</code>
935     の設定 (これは上流のディレクトリを受け継ぎます) 
936     に対して適応されます。
937     しかしながら、接頭辞の付かないキーワードが処理された場合は、
938     受け継いだオプション全てとそれまで出会った増減設定全てが
939     消去されます。次の例を考えてみてください:</p>
940
941     <div class="example"><p><code>
942       IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing<br />
943       IndexOptions +SuppressSize
944     </code></p></div>
945
946     <p>最終的な効果は
947     <code>IndexOptions&nbsp;FancyIndexing&nbsp;+SuppressSize</code>
948     と同一です。
949     接頭辞の付かない <code>FancyIndexing</code>
950     でそれ以前の増減キーワードは無効になり、
951     その後の累積が始まるからです。</p>
952
953     <p>あるディレクトリにおいて上位のディレクトリに指定された設定に影響されることなく
954     <code class="directive">IndexOptions</code> を設定したい場合、
955     <code>+</code> や <code>-</code>
956     接頭辞の付かないキーワードで設定してください。</p>
957   </dd>
958   </dl>
959
960</div>
961<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
962<div class="directive-section"><h2><a name="IndexOrderDefault" id="IndexOrderDefault">IndexOrderDefault</a> <a name="indexorderdefault" id="indexorderdefault">ディレクティブ</a></h2>
963<table class="directive">
964<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>
965ディレクトリインデックスの標準の順番付けを設定</td></tr>
966<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexOrderDefault Ascending|Descending
967Name|Date|Size|Description</code></td></tr>
968<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>IndexOrderDefault Ascending Name</code></td></tr>
969<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
970<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
971<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
972<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
973</table>
974    <p><code class="directive">IndexOrderDefault</code> ディレクティブは
975    <code><a href="#indexoptions.fancyindexing">FancyIndexing</a></code>
976    インデックスオプションと併せて用いられます。
977    デフォルトでは、FancyIndexing 
978    のディレクトリ一覧はファイル名の昇順で表示されます。
979    <code class="directive">IndexOrderDefault</code>
980    で、初期状態の表示順番を変えることができます。</p>
981
982    <p><code class="directive">IndexOrderDefault</code>
983    は二つの引数をとります。一つ目はソートの方向を指示する
984    <code>Ascending</code> か <code>Descending</code> のいずれかです。
985    二つ目の引数は <code>Name</code>, <code>Date</code>,
986    <code>Size</code> か <code>Description</code> 
987    のいずれか一つのキーワードであって、1つ目のソートキーを指定します。
988    2つ目のソートキーは<em>常に</em>ファイル名の昇順になります。</p>
989
990    <p>このディレクティブと <code><a href="#indexoptions.suppresscolumnsorting">SuppressColumnSorting</a></code>
991    インデックスオプションとを組み合わせることで、
992    ディレクトリ一覧をある特定の順番でのみ表示するようにできます。
993    これは、
994    クライアントが別の順番でディレクトリ一覧をリクエストすることを防ぎます。</p>
995
996</div>
997<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
998<div class="directive-section"><h2><a name="IndexStyleSheet" id="IndexStyleSheet">IndexStyleSheet</a> <a name="indexstylesheet" id="indexstylesheet">ディレクティブ</a></h2>
999<table class="directive">
1000<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ディレクトリインデックスに CSS スタイルシートを追加する</td></tr>
1001<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>IndexStyleSheet <var>url-path</var></code></td></tr>
1002<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
1003<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
1004<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
1005<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
1006</table>
1007    <p><code class="directive">IndexStyleSheet</code> ディレクティブは
1008    インデックス表示に使用される CSS のファイル名を設定します。
1009    </p>
1010    <div class="example"><h3>例</h3><p><code>
1011      
1012      IndexStyleSheet "/css/style.css"
1013    </code></p></div>
1014
1015</div>
1016<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
1017<div class="directive-section"><h2><a name="ReadmeName" id="ReadmeName">ReadmeName</a> <a name="readmename" id="readmename">ディレクティブ</a></h2>
1018<table class="directive">
1019<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>インデックス一覧の最後に挿入されるファイルの名前</td></tr>
1020<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ReadmeName <var>filename</var></code></td></tr>
1021<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
1022<tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>Indexes</td></tr>
1023<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Base</td></tr>
1024<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_autoindex</td></tr>
1025</table>
1026    <p><code class="directive">ReadmeName</code> ディレクティブは、
1027    インデックスの終わりに付け加えられるファイルの名前を設定します。
1028    <var>filename</var> は挿入するファイルの名前で、
1029    一覧の行われている位置から相対的なものとして解釈されます。
1030    <var>filename</var> がスラッシュで始まる場合は、
1031    <code class="directive"><a href="/mod/core.html#documentroot">DocumentRoot</a></code>
1032    からの相対パスとなります。</p>
1033
1034    <div class="example"><h3>例</h3><p><code>
1035      ReadmeName FOOTER.html
1036    </code></p></div>
1037
1038    <div class="example"><h3>例 2</h3><p><code>
1039    ReadmeName /include/FOOTER.html
1040    </code></p></div>
1041
1042    <p>より詳細にまでこの挙動について記述している <code class="directive"><a href="#headername">HeaderName</a></code>
1043    もご覧下さい。</p>
1044
1045</div>
1046</div>
1047<div class="bottomlang">
1048<p><span>翻訳済み言語: </span><a href="/en/mod/mod_autoindex.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
1049<a href="/fr/mod/mod_autoindex.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
1050<a href="/ja/mod/mod_autoindex.html" title="Japanese">&nbsp;ja&nbsp;</a> |
1051<a href="/ko/mod/mod_autoindex.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a> |
1052<a href="/tr/mod/mod_autoindex.html" hreflang="tr" rel="alternate" title="Türkçe">&nbsp;tr&nbsp;</a></p>
1053</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>
1054<script type="text/javascript"><!--//--><![CDATA[//><!--
1055var comments_shortname = 'httpd';
1056var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_autoindex.html';
1057(function(w, d) {
1058    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
1059        d.write('<div id="comments_thread"><\/div>');
1060        var s = d.createElement('script');
1061        s.type = 'text/javascript';
1062        s.async = true;
1063        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
1064        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
1065    }
1066    else { 
1067        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
1068    }
1069})(window, document);
1070//--><!]]></script></div><div id="footer">
1071<p class="apache">Copyright 2014 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
1072<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[//><!--
1073if (typeof(prettyPrint) !== 'undefined') {
1074    prettyPrint();
1075}
1076//--><!]]></script>
1077</body></html>