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
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" />
12 <link href=
"../images/favicon.ico" rel=
"shortcut icon" /></head>
14 <div id=
"page-header">
15 <p class=
"menu"><a href=
"../mod/">モジュール
</a> |
<a href=
"../mod/directives.html">ディレクティブ
</a> |
<a href=
"../faq/">FAQ
</a> |
<a href=
"../glossary.html">用語
</a> |
<a href=
"../sitemap.html">サイトマップ
</a></p>
16 <p class=
"apache">Apache HTTP サーバ バージョン
2.3</p>
17 <img alt=
"" src=
"../images/feather.gif" /></div>
18 <div class=
"up"><a href=
"./"><img title=
"<-" alt=
"<-" src=
"../images/left.gif" /></a></div>
20 <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=
"../">バージョン
21 2.3</a> > <a href=
"./">モジュール
</a></div>
22 <div id=
"page-content">
23 <div id=
"preamble"><h1>Apache モジュール mod_autoindex
</h1>
25 <p><span>言語:
</span><a href=
"../en/mod/mod_autoindex.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
26 <a href=
"../ja/mod/mod_autoindex.html" title=
"Japanese"> ja
</a> |
27 <a href=
"../ko/mod/mod_autoindex.html" hreflang=
"ko" rel=
"alternate" title=
"Korean"> ko
</a> |
28 <a href=
"../tr/mod/mod_autoindex.html" hreflang=
"tr" rel=
"alternate" title=
"Türkçe"> tr
</a></p>
30 <table class=
"module"><tr><th><a href=
"module-dict.html#Description">説明:
</a></th><td>Unix の
<code>ls
</code> コマンドや
31 Win32 の
<code>dir
</code> シェルコマンドに似た
32 ディレクトリインデックスを生成する
</td></tr>
33 <tr><th><a href=
"module-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
34 <tr><th><a href=
"module-dict.html#ModuleIdentifier">モジュール識別子:
</a></th><td>autoindex_module
</td></tr>
35 <tr><th><a href=
"module-dict.html#SourceFile">ソースファイル:
</a></th><td>mod_autoindex.c
</td></tr></table>
38 <p>ディレクトリのインデックスは二つの情報源のうちの
42 <li>普通は
<code>index.html
</code> と呼ばれる
44 <code class=
"directive"><a href=
"../mod/mod_dir.html#directoryindex">DirectoryIndex
</a></code>
45 ディレクティブでこのファイル名を設定します。
46 これは
<code class=
"module"><a href=
"../mod/mod_dir.html">mod_dir
</a></code> で制御されます。
</li>
48 <li>もしくは、サーバによって生成された一覧。
49 その他のディレクティブでこの一覧の書式を制御します。
50 <code class=
"directive"><a href=
"#addicon">AddIcon
</a></code>,
<code class=
"directive"><a href=
"#addiconbyencoding">AddIconByEncoding
</a></code> と
51 <code class=
"directive"><a href=
"#addiconbytype">AddIconByType
</a></code>
52 を使うことで、様々なファイルタイプに対してアイコン一覧を
53 セットします。つまり、リストされたファイル毎に、
54 ファイルにマッチした一番最初のアイコンが表示されます。
55 これらは
<code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code> で制御されます。
</li>
57 <p>望むならば、自動インデックス生成を完全に除去 (あるいは置換)
58 できるように、この二つの機能は分離されています。
</p>
60 <p>自動インデックス生成は
<code>Options +Indexes
</code>
61 を使うことで有効になります。詳細については、
62 <code class=
"directive"><a href=
"../mod/core.html#options">Options
</a></code>
65 <p>もし
<code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>オプションが
66 <code class=
"directive"><a href=
"../mod/autoindex.html#indexoptions">IndexOptions
</a></code>
68 列の先頭は表示の順番を制御するリンクになります。
69 先頭のリンクを選択すると、一覧は再生成されて
71 同じ先頭を続けて選択すると、交互に昇順と降順とになります。
73 <code class=
"directive"><a href=
"#indexoptions">IndexOptions
</a></code>
75 <code>SuppressColumnSorting
</code>
78 <p>"Size" でソートした場合は、用いられるのは
79 <em>実際の
</em>ファイルのサイズであって、
81 たとえ両方ともが
"1K" と表示されていたとしても、
83 バイトのファイルよりも前 (昇順の場合) に表示されます。
</p>
85 <div id=
"quickview"><h3 class=
"directives">ディレクティブ
</h3>
87 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addalt">AddAlt
</a></li>
88 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addaltbyencoding">AddAltByEncoding
</a></li>
89 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addaltbytype">AddAltByType
</a></li>
90 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#adddescription">AddDescription
</a></li>
91 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addicon">AddIcon
</a></li>
92 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addiconbyencoding">AddIconByEncoding
</a></li>
93 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#addiconbytype">AddIconByType
</a></li>
94 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#defaulticon">DefaultIcon
</a></li>
95 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#headername">HeaderName
</a></li>
96 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#indexheadinsert">IndexHeadInsert
</a></li>
97 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#indexignore">IndexIgnore
</a></li>
98 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#indexoptions">IndexOptions
</a></li>
99 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#indexorderdefault">IndexOrderDefault
</a></li>
100 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#indexstylesheet">IndexStyleSheet
</a></li>
101 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#readmename">ReadmeName
</a></li>
105 <li><img alt=
"" src=
"../images/down.gif" /> <a href=
"#query">Autoindex リクエストクエリー引数
</a></li>
107 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
108 <div class=
"section">
109 <h2><a name=
"query" id=
"query">Autoindex リクエストクエリー引数
</a></h2>
113 コラムソートのためにクエリー引数を再編成して、
114 新しいクエリーオプションのグループを導入しました。
115 出力に対するクライアントのすべての制御を効率的に抹消
117 <code><a href=
"#indexoptions.ignoreclient">IndexOptions
118 IgnoreClient
</a></code> が導入されました。
</p>
124 ディレクトリリソースへのリクエストに加えることができます。
</p>
127 <li><code>C=N
</code> は、ファイル名でソートします。
</li>
129 <li><code>C=M
</code> は、更新日時、
130 ディレクトリ、ファイル名の順でソートします。
</li>
132 <li><code>C=S
</code> は、サイズ、
133 ディレクトリ、ファイル名の順でソートします。
</li>
135 <li class=
"separate"><code>C=D
</code> は、説明、
136 ディレクトリ、ファイル名の順でソートします。
</li>
138 <li><code>O=A
</code> は、昇順で表をソートします。
</li>
140 <li class=
"separate"><code>O=D
</code> は、降順で表をソートします。
</li>
142 <li><code>F=
0</code> は、単純な表の書式にします。
143 (FancyIndex ではありません。)
</li>
145 <li><code>F=
1</code> は、FancyIndex
148 <li><code>F=
2</code> は、表を HTML
149 のテーブルを使った FancyIndex の書式にします。
</li>
152 は、バージョンによるソートを無効にします。
</li>
154 <li class=
"separate"><code>V=
1</code>
155 は、バージョンによるソートを有効にします。
</li>
157 <li><code>P=
<var>pattern
</var></code>
158 は、与えられた
<var>pattern
</var>
159 に適合したファイルのみを表示します。
</li>
162 <p>"P (パターンの P)" クエリー引数は、
163 通常の
<code class=
"directive"><a href=
"#indexignore">IndexIgnore
</a></code>
164 ディレクティブが処理された
<em>後
</em>に検査され、
165 ファイル名全てが、他の autoindex
166 リスト処理と同様の判定基準下に置かれ続ける
168 <code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code> のクエリー引数パーサ (解析) は、
169 認識不能なオプションにぶつかると即座に停止します。
171 正しい形式になっていなければなりません。
</p>
173 <p>下の単純な例は、これらのクエリーオプションを
174 表します。これをそのまま切り取って HEADER.html
176 mod_autoindex が X=Go 入力にぶつかる前に
178 未知の引数
"X" はリストの最後に置かれています。
</p>
180 <div class=
"example"><p><code>
181 <form
action=
"" method=
"get"><br />
182 <span class=
"indent">
183 Show me a
<select
name=
"F"><br />
184 <span class=
"indent">
185 <option
value=
"0"> Plain list
</option
><br />
186 <option
value=
"1" selected=
"selected"> Fancy list
</option
><br />
187 <option
value=
"2"> Table list
</option
><br />
189 </select
><br />
190 Sorted by
<select
name=
"C"><br />
191 <span class=
"indent">
192 <option
value=
"N" selected=
"selected"> Name
</option
><br />
193 <option
value=
"M"> Date Modified
</option
><br />
194 <option
value=
"S"> Size
</option
><br />
195 <option
value=
"D"> Description
</option
><br />
197 </select
><br />
198 <select
name=
"O"><br />
199 <span class=
"indent">
200 <option
value=
"A" selected=
"selected"> Ascending
</option
><br />
201 <option
value=
"D"> Descending
</option
><br />
203 </select
><br />
204 <select
name=
"V"><br />
205 <span class=
"indent">
206 <option
value=
"0" selected=
"selected"> in Normal order
</option
><br />
207 <option
value=
"1"> in Version order
</option
><br />
209 </select
><br />
210 Matching
<input
type=
"text" name=
"P" value=
"*" /
><br />
211 <input
type=
"submit" name=
"X" value=
"Go" /
><br />
217 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
218 <div class=
"directive-section"><h2><a name=
"AddAlt" id=
"AddAlt">AddAlt
</a> <a name=
"addalt" id=
"addalt">ディレクティブ
</a></h2>
219 <table class=
"directive">
220 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>アイコンの代わりに
221 表示される、ファイル名で選択された代替テキスト
</td></tr>
222 <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>
223 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
224 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
225 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
226 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
228 <p><code class=
"directive">AddAlt
</code> は、
<code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
229 において、アイコンの代わりに表示する代替テキストを提供します。
230 <var>file
</var> は、説明するファイルのファイル拡張子、
231 ファイル名の一部、ワイルドカード表現、完全なファイル名の
233 <var>string
</var> に空白がある場合は引用符 (
<code>"</code>
234 か <code>'</code>) で囲む必要があります。
235 この文字列は、クライアントが画像を表示できない場合や
237 アイコンの取得に失敗したときに表示されます。</p>
239 <div class="example
"><h3>例</h3><p><code>
240 AddAlt "PDF file
" *.pdf<br />
241 AddAlt Compressed *.gz *.zip *.Z
245 <div class="top
"><a href="#page-header
"><img alt="top
" src="../images/up.gif
" /></a></div>
246 <div class="directive-section
"><h2><a name="AddAltByEncoding
" id="AddAltByEncoding
">AddAltByEncoding</a> <a name="addaltbyencoding
" id="addaltbyencoding
">ディレクティブ</a></h2>
247 <table class="directive
">
248 <tr><th><a href="directive-dict.html#Description
">説明:</a></th><td>アイコンの代わりに表示される、MIME 符号化方法で選択された
250 <tr><th><a href="directive-dict.html#Syntax
">構文:</a></th><td><code>AddAltByEncoding <var>string</var> <var>MIME-encoding</var>
251 [<var>MIME-encoding</var>] ...</code></td></tr>
252 <tr><th><a href="directive-dict.html#Context
">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
253 <tr><th><a href="directive-dict.html#Override
">上書き:</a></th><td>Indexes</td></tr>
254 <tr><th><a href="directive-dict.html#Status
">ステータス:</a></th><td>Base</td></tr>
255 <tr><th><a href="directive-dict.html#Module
">モジュール:</a></th><td>mod_autoindex</td></tr>
257 <p><code class="directive
">AddAltByEncoding</code> は、
258 <code><a href="#indexoptions.fancyindexing
">FancyIndexing</a></code>
259 において、アイコンの代わりに表示する代替文字列を提供します。
260 <var>MIME-encoding</var> は有効な符号化、例えば
261 <code>x-compress</code>
263 <var>string</var> に空白があるときは、引用符 (<code>"</code> か
264 <code>'
</code>) で囲む必要があります。
265 この文字列は、クライアントが画像を表示できない場合や
267 アイコンの取得に失敗したときに表示されます。
</p>
269 <div class=
"example"><h3>例
</h3><p><code>
270 AddAltByEncoding gzip x-gzip
274 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
275 <div class=
"directive-section"><h2><a name=
"AddAltByType" id=
"AddAltByType">AddAltByType
</a> <a name=
"addaltbytype" id=
"addaltbytype">ディレクティブ
</a></h2>
276 <table class=
"directive">
277 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>アイコンの代わりに
278 表示される、MIME タイプで選択された代替テキスト
</td></tr>
279 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>AddAltByType
<var>string
</var> <var>MIME-type
</var>
280 [
<var>MIME-type
</var>] ...
</code></td></tr>
281 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
282 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
283 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
284 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
286 <p><code class=
"directive">AddAltByType
</code> は、
287 <code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
288 において、アイコンの代わりに表示する代替文字列を設定します。
289 <var>MIME-type
</var> は有効なタイプ、例えば
290 <code>text/html
</code>
292 <var>string
</var> に空白があるときは、引用符 (
<code>"</code> か
293 <code>'</code>) で囲む必要があります。
294 この文字列は、クライアントが画像を表示できない場合や
296 アイコンの取得に失敗したときに表示されます。</p>
298 <div class="example
"><h3>例</h3><p><code>
299 AddAltByType 'plain text' text/plain
303 <div class="top
"><a href="#page-header
"><img alt="top
" src="../images/up.gif
" /></a></div>
304 <div class="directive-section
"><h2><a name="AddDescription
" id="AddDescription
">AddDescription</a> <a name="adddescription
" id="adddescription
">ディレクティブ</a></h2>
305 <table class="directive
">
306 <tr><th><a href="directive-dict.html#Description
">説明:</a></th><td>ファイルに対して表示する説明</td></tr>
307 <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>
308 <tr><th><a href="directive-dict.html#Context
">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
309 <tr><th><a href="directive-dict.html#Override
">上書き:</a></th><td>Indexes</td></tr>
310 <tr><th><a href="directive-dict.html#Status
">ステータス:</a></th><td>Base</td></tr>
311 <tr><th><a href="directive-dict.html#Module
">モジュール:</a></th><td>mod_autoindex</td></tr>
313 <p><code><a href="#indexoptions.fancyindexing
">FancyIndexing</a></code>
314 において、ファイルに対して表示する説明を設定します。
315 <var>file</var> は説明するファイルのファイル拡張子、
316 ファイル名の一部、ワイルドカード表現、完全なファイル名の
318 <var>string</var> は二重引用符 (<code>"</code>) で囲まれます。
</p>
320 <div class=
"example"><h3>例
</h3><p><code>
321 AddDescription
"The planet Mars" /web/pics/mars.gif
324 <p>通常のデフォルトの説明領域は
23 バイトの幅です。
325 <code><a href=
"#indexoptions.suppressicon">IndexOptions SuppressIcon
</a></code>
327 <code><a href=
"#indexoptions.suppresssize">IndexOptions SuppressSize
</a></code>
329 <code><a href=
"#indexoptions.suppresslastmodified">IndexOptions SuppressLastModified
</a></code>
331 ですから、デフォルトの説明コラムの最大幅は
335 説明が無制限長でもよいようにするための詳細に関しては、
336 <a href=
"#indexoptions.descriptionwidth">DescriptionWidth
</a>
338 <code class=
"directive"><a href=
"#indexoptions">IndexOptions
</a></code>
341 <div class=
"note"><h3>警告
</h3>
342 <p><code class=
"directive">AddDescription
</code>
343 で定義された説明テキストは、タグや文字列といった
344 HTML マークアップを含むことができます。
345 もし、説明コラムの幅によってタグ付けされた要素が丸め込まれた
346 (太字の語句の最後が切れるといった) 場合、
347 出力結果は、ディレクトリ一覧の残りの部分に影響を与えるでしょう。
</p>
351 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
352 <div class=
"directive-section"><h2><a name=
"AddIcon" id=
"AddIcon">AddIcon
</a> <a name=
"addicon" id=
"addicon">ディレクティブ
</a></h2>
353 <table class=
"directive">
354 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ファイルに表示するアイコンを名前で選択
</td></tr>
355 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>AddIcon
<var>icon
</var> <var>name
</var>
356 [
<var>name
</var>] ...
</code></td></tr>
357 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
358 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
359 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
360 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
362 <p><code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
364 <var>name
</var> で終わるファイルの隣に表示するアイコンを設定します。
365 <var>icon
</var> は、(% でエスケープされた) アイコンへの相対 URL
366 か、他の書式 (
<var>alttext
</var>,
<var>url
</var>) です。
367 ここで
<var>alttext
</var>
368 は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
371 <p><var>name
</var> は、ディレクトリに対応する
<code>^^DIRECTORY^^
</code>
372 か、空白行に対応する
<code>^^BLANKICON^^
</code> (一覧が正しく表示されるために) か、
373 ファイル拡張子か、ワイルドカード表現か、ファイル名の一部か
376 <div class=
"example"><h3>例
</h3><p><code>
377 AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm
<br />
378 AddIcon /icons/dir.xbm ^^DIRECTORY^^
<br />
379 AddIcon /icons/backup.xbm *~
383 <code class=
"directive">AddIcon
</code>
385 <code class=
"directive"><a href=
"#addiconbytype">AddIconByType
</a></code>
389 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
390 <div class=
"directive-section"><h2><a name=
"AddIconByEncoding" id=
"AddIconByEncoding">AddIconByEncoding
</a> <a name=
"addiconbyencoding" id=
"addiconbyencoding">ディレクティブ
</a></h2>
391 <table class=
"directive">
392 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ファイルに表示するアイコンを MIME
394 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>AddIconByEncoding
<var>icon
</var> <var>MIME-encoding
</var>
395 [
<var>MIME-encoding
</var>] ...
</code></td></tr>
396 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
397 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
398 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
399 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
401 <p><code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
402 において、ファイルの隣に表示するアイコンを設定します。
403 <var>icon
</var> は、(% でエスケープされた) アイコンへの相対 URL
404 か、他の書式
<code>(
<var>alttext
</var>,
<var>url
</var>)
</code> です。
405 ここで
<var>alttext
</var>
406 は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
409 <p><var>MIME-encoding
</var> は、有効なコンテントエンコーディング、
410 例えば
<code>x-compress
</code>です。
</p>
412 <div class=
"example"><h3>例
</h3><p><code>
413 AddIconByEncoding /icons/compress.xbm x-compress
417 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
418 <div class=
"directive-section"><h2><a name=
"AddIconByType" id=
"AddIconByType">AddIconByType
</a> <a name=
"addiconbytype" id=
"addiconbytype">ディレクティブ
</a></h2>
419 <table class=
"directive">
420 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ファイルの隣に表示するアイコンを
421 MIME タイプによって選択
</td></tr>
422 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>AddIconByType
<var>icon
</var> <var>MIME-type
</var>
423 [
<var>MIME-type
</var>] ...
</code></td></tr>
424 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
425 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
426 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
427 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
429 <p><code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
430 において、ファイルの隣に表示するアイコンを設定します。
431 <var>icon
</var> は、(% でエスケープされた) アイコンへの相対 URL
432 か、他の書式
<code>(
<var>alttext
</var>,
<var>url
</var>)
</code> です。
433 ここで
<var>alttext
</var>
434 は、非グラフィカルブラウザ向けにアイコンに付けられたテキストタグです。
437 <p><var>MIME-type
</var> は、要求されたタイプに該当する
440 <div class=
"example"><h3>例
</h3><p><code>
441 AddIconByType (IMG,/icons/image.xbm) image/*
445 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
446 <div class=
"directive-section"><h2><a name=
"DefaultIcon" id=
"DefaultIcon">DefaultIcon
</a> <a name=
"defaulticon" id=
"defaulticon">ディレクティブ
</a></h2>
447 <table class=
"directive">
448 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>特定のアイコンが何も設定されていない時に
449 ファイルに表示するアイコン
</td></tr>
450 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>DefaultIcon
<var>url-path
</var></code></td></tr>
451 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
452 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
453 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
454 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
456 <p><code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
458 特定のアイコンがない場合にファイルに表示するアイコンを設定します。
459 <var>url-path
</var> は、(% でエスケープされた) アイコンへの相対 URL
462 <div class=
"example"><h3>例
</h3><p><code>
463 DefaultIcon /icon/unknown.xbm
467 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
468 <div class=
"directive-section"><h2><a name=
"HeaderName" id=
"HeaderName">HeaderName
</a> <a name=
"headername" id=
"headername">ディレクティブ
</a></h2>
469 <table class=
"directive">
470 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>
471 インデックス一覧の先頭に挿入されるファイルの名前
</td></tr>
472 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>HeaderName
<var>filename
</var></code></td></tr>
473 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
474 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
475 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
476 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
478 <p><code class=
"directive">HeaderName
</code>
480 インデックス一覧の先頭に挿入するファイルの名前を設定します。
481 <var>Filename
</var> は取り込むファイルの名前です。
</p>
483 <div class=
"example"><h3>例
</h3><p><code>
484 HeaderName HEADER.html
488 <p>HeaderName も
<code class=
"directive"><a href=
"#readmename">ReadmeName
</a></code>
489 も両方とも現在は、
<var>filename
</var>
490 をインデックスされているディレクトリに用いられた URI
491 に対する相対 URI パスとして扱います。
492 <var>filename
</var> がスラッシュで始まる場合は、
493 <code class=
"directive"><a href=
"../mod/core.html#documentroot">DocumentRoot
</a></code>
496 <div class=
"example"><h3>例
</h3><p><code>
497 HeaderName /include/HEADER.html
500 <p><var>filename
</var> は
501 メジャーコンテントタイプが
"<code>text/*</code>"
502 (
<em>例えば
</em>、
<code>text/html
</code>,
503 <code>text/plain
</code> 等です。)
506 もし CGI スクリプトの実際のファイルタイプが
507 次のディレクティブのようにして実際の出力とは異なって
508 <code>text/html
</code> としてマークされている場合、
510 は CGI スクリプトを参照するかも知れない、
513 <div class=
"example"><p><code>
514 AddType text/html .cgi
517 <p><code class=
"directive"><a href=
"../mod/core.html#options">Options
</a></code> <code>MultiViews
</code> が
519 <a href=
"../content-negotiation.html">コンテントネゴシエーション
</a>
521 もし
<var>filename
</var> が (CGI スクリプトでない) 静的な
522 <code>text/html
</code> ドキュメントで解決され、
523 <code class=
"directive"><a href=
"../mod/core.html#options">options
</a></code>
524 <code>Includes
</code> か
<code>IncludesNOEXEC
</code>
526 ファイルはサーバーサイドインクルードで処理されます
527 (
<code class=
"module"><a href=
"../mod/mod_include.html">mod_include
</a></code> ドキュメントを参照して下さい)。
</p>
530 <p>もし
<code class=
"directive">HeaderName
</code> で指定されたファイルが
531 HTML ドキュメントの開始部分 (
<html
>,
<head
>,
533 <a href=
"#indexoptions.suppresshtmlpreamble"><code>IndexOptions
534 +SuppressHTMLPreamble
</code></a>
535 を設定して、これらのタグが繰り返されないようにしたいと思うでしょう。
</p>
538 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
539 <div class=
"directive-section"><h2><a name=
"IndexHeadInsert" id=
"IndexHeadInsert">IndexHeadInsert
</a> <a name=
"indexheadinsert" id=
"indexheadinsert">ディレクティブ
</a></h2>
540 <table class=
"directive">
541 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>インデックスページの HEAD セクションにテキストを挿入する
</td></tr>
542 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>IndexHeadInsert
<var>"markup ..."</var></code></td></tr>
543 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
544 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
545 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
546 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
548 <p><code class=
"directive">IndexHeadInsert
</code> ディレクティブを使って
549 インデックスとして生成されたHTMLの
<var><head
></var> セクションに
551 <div class=
"example"><h3>Example
</h3><p><code>
553 IndexHeadInsert
"<link rel=\"sitemap\
" href=\"/sitemap.html\
">"
557 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
558 <div class=
"directive-section"><h2><a name=
"IndexIgnore" id=
"IndexIgnore">IndexIgnore
</a> <a name=
"indexignore" id=
"indexignore">ディレクティブ
</a></h2>
559 <table class=
"directive">
560 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ディレクトリ一覧を行なう際に無視すべき
562 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>IndexIgnore
<var>file
</var> [
<var>file
</var>] ...
</code></td></tr>
563 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
564 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
565 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
566 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
568 <p><code class=
"directive">IndexIgnore
</code> ディレクティブは、
569 ディレクトリの一覧を行う際に無視すべきファイルリストに追加します。
571 シェル形式のワイルドカード表現か完全なファイル名です。
572 IndexIgnore が複数ある場合は、無視するリストに追加が行われ、
573 置換は行われません。デフォルトではリストには
<code>.
</code>
574 (カレントディレクトリ) が含まれています。
</p>
576 <div class=
"example"><p><code>
577 IndexIgnore README .htaccess *.bak *~
581 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
582 <div class=
"directive-section"><h2><a name=
"IndexOptions" id=
"IndexOptions">IndexOptions
</a> <a name=
"indexoptions" id=
"indexoptions">ディレクティブ
</a></h2>
583 <table class=
"directive">
584 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ディレクトリインデックスの様々な設定項目
586 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>IndexOptions [+|-]
<var>option
</var> [[+|-]
<var>option
</var>] ...
</code></td></tr>
587 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
588 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
589 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
590 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
592 <p><code class=
"directive">IndexOptions
</code>
593 は、ディレクトリインデックスの挙動を指定します。
594 <var>option
</var> は次のどれかです:
</p>
597 <dt><a name=
"indexoptions.charset" id=
"indexoptions.charset">Charset=
<var>character-set
</var></a> (
<em>Apache
2.0.61
600 <dd><code>Charset
</code> キーワードで、
601 生成されるページの文字セットを指定できます。
602 下位のファイルシステムが Unicode ベースかどうかに依存しますが、
603 デフォルト値は
<var>ISO-
8859-
1</var> か
<var>UTF-
8</var>
606 <div class=
"example"><h3>Example:
</h3><p><code>
607 IndexOptions Charset=UTF-
8
611 <dt><a name=
"indexoptions.type" id=
"indexoptions.type">Type=
<var>MIME content-type
</var></a> (
<em>Apache
2.0.61
614 <dd><code>Type
</code> キーワードで、
615 生成されるページの MIME コンテントタイプを指定できます。
616 デフォルト値は
<var>text/html
</var> になります。
618 <div class=
"example"><h3>Example:
</h3><p><code>
619 IndexOptions Type=text/plain
623 <dt><a name=
"indexoptions.descriptionwidth" id=
"indexoptions.descriptionwidth">DescriptionWidth=[
<var>n
</var> | *]
</a>
624 (
<em>2.0.23 以降
</em>)
</dt>
626 <dd><code>DescriptionWidth
</code>
627 キーワードは説明コラムの幅を文字数で指定することができます。
</dd>
629 <dd><code>-DescriptionWidth
</code> (または非設定) で、
630 <code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code> が最適な幅を計算するようにできます。
</dd>
632 <dd><code>DescriptionWidth=
<var>n
</var></code>
633 で、コラム幅を
<var>n
</var> バイトに固定します。
</dd>
635 <dd><code>DescriptionWidth=*
</code>
636 は、最長の説明に合わせて必要な長さまでコラムを延ばします。
</dd>
638 <dd><strong>説明を丸め込んだ場合特有の危険については
639 <code class=
"directive"><a href=
"#adddescription">AddDescription
</a></code>
640 セクションをお読み下さい。
</strong></dd>
642 <dt><a name=
"indexoptions.fancyindexing" id=
"indexoptions.fancyindexing">FancyIndexing
</a></dt>
644 <dd>飾り付きインデックスをオンにします。
</dd>
646 <dt><a name=
"indexoptions.foldersfirst" id=
"indexoptions.foldersfirst">FoldersFirst
</a>
647 (
<em>2.0.23 以降
</em>)
</dt>
649 <dd>このオプションが有効になった場合、サブディレクトリの一覧は
650 <em>必ず
</em>最初に現われて、通常のファイルはその後に続きます。
651 一覧は基本的には、ファイルとディレクトリの二つの部分に分けられて、
652 それぞれは別々にソートされ、その後サブディレクトリを先にして
653 表示が行なわれます。例えばソート順が名前の降順になっていて、
654 <code>FoldersFirst
</code> が有効になっている場合は、
655 サブディレクトリ
<code>Zed
</code> はサブディレクトリ
656 <code>Beta
</code> よりも前にリストされ、通常のファイル
657 <code>Gamma
</code> や
<code>Alpha
</code>
658 よりも前にリストされます。
<strong>このオプションは
659 <a href=
"#indexoptions.fancyindexing"><code>FancyIndexing
</code></a>
660 も有効になっているときにのみ有効です。
</strong></dd>
662 <dt><a name=
"indexoptions.htmltable" id=
"indexoptions.htmltable">HTMLTable
</a> <em>(実験的、
663 Apache
2.0.23 以降)
</em></dt>
665 <dd>この実験的なオプションは
<code>FancyIndexing
</code> とともに指定することで、
666 飾りの付いたディレクトリ一覧のためにテーブルを使った単純な表を作ります。
667 これは古いブラウザを混乱させるかもしれないことに注意してください。
669 が有効なプラットホームのように、ファイル名や説明テキストが
670 右読みになったり左読みになりえる場合は特に必要です。
</dd>
672 <dt><a name=
"indexoptions.iconsarelinks" id=
"indexoptions.iconsarelinks">IconsAreLinks
</a></dt>
674 <dd>これは、FancyIndexing において、
675 アイコンもファイル名へのリンクの一部にします。
</dd>
677 <dt><a name=
"indexoptions.iconheight" id=
"indexoptions.iconheight">IconHeight[=
<var>pixels
</var>]
</a></dt>
679 <dd>このオプションが、
<code>IconWidth
</code> とともに
680 使われている場合は、サーバはファイルアイコンのための
681 <code>img
</code> タグに
<code>height
</code> と
<code>width
</code>
683 これによって、イメージ全てをロードし終わるまで待たなくても、
684 ブラウザはページレイアウトをあらかじめ計算することができます。
685 このオプションに何も値が与えられなければ、Apache
686 ソフトウェアで提供されているアイコンの標準の高さが
689 <dt><a name=
"indexoptions.iconwidth" id=
"indexoptions.iconwidth">IconWidth[=
<var>pixels
</var>]
</a></dt>
691 <dd>このオプションが、
<code>IconHeight
</code> とともに使われている場合は、
692 サーバはファイルアイコンのための
<code>img
</code>
693 タグに
<code>height
</code> と
<code>width
</code>
695 これによって、イメージ全てをロードし終わるまで待たなくても、
696 ブラウザはページレイアウトをあらかじめ計算することができます。
697 このオプションに何も値が与えられなければ、Apache
698 ソフトウェアで提供されているアイコンの標準の高さが
701 <dt><a name=
"indexoptions.ignorecase" id=
"indexoptions.ignorecase">IgnoreCase
</a></dt>
703 <dd>このオプションが有効であると、ファイル名は大文字小文字を区別せずにソートされます。
704 例えばファイル名が昇順でソートされ、
<code>IgnoreCase
</code> が有効であれば、
705 Zeta は alfa の後にリストされます
706 (注意: GAMMA は常に gamma の前になります)。
</dd>
708 <dt><a name=
"indexoptions.ignoreclient" id=
"indexoptions.ignoreclient">IgnoreClient
</a></dt>
710 <dd>このオプションで
<code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code> は、
711 クライアントからの全てのクエリー変数を無視するようになります。
713 (つまり
<code><a href=
"#indexoptions.suppresscolumnsorting">SuppressColumnSorting
</a></code>
716 <dt><a name=
"indexoptions.namewidth" id=
"indexoptions.namewidth">NameWidth=[
<var>n
</var>
719 <dd><code>NameWidth
</code> キーワードでファイル名コラムの幅をバイト数で
722 <dd><code>-NameWidth
</code> (または非設定) で、
723 <code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code> が最適な幅を計算するようにできます。
</dd>
725 <dd><code>NameWidth=
<var>n
</var></code>
726 で、コラム幅を
<var>n
</var> バイトに固定します。
</dd>
728 <dd><code>NameWidth=*
</code>
729 は、必要な長さまでコラムを延ばします。
</dd>
731 <dt><a name=
"indexoptions.scanhtmltitles" id=
"indexoptions.scanhtmltitles">ScanHTMLTitles
</a></dt>
733 <dd>FancyIndexing のために、
734 HTML ドキュメントからタイトルを取り出すことを可能にします。
736 <code class=
"directive"><a href=
"#adddescription">AddDescription
</a></code>
738 httpd は
<code>title
</code> タグの値を読むためにドキュメントを読み始めます。
739 これは CPU や disk に負荷をかけます。
</dd>
741 <dt><a name=
"indexoptions.showforbidden" id=
"indexoptions.showforbidden">ShowForbidden
</a></dt>
743 <dd>通常 Apache はサブリクエストの結果が
<code>HTTP_UNAUTHORIZED
</code> や
744 <code>HTTP_FORBIDDEN
</code> のファイルは一覧に表示しません。
745 このオプションを指定すると、そのようなファイルも一覧に表示します。
</dd>
747 <dt><a name=
"indexoptions.suppresscolumnsorting" id=
"indexoptions.suppresscolumnsorting">SuppressColumnSorting
</a></dt>
749 <dd>もし指定されていれば、Apache は
750 FancyIndexing で表示されているディレクトリ一覧での
751 コラムの先頭を、ソートのためのリンクにしなくなります。
753 コラムの先頭を選ぶとコラムの値に従ってディレクトリリストを
755 <strong>Apache
2.0.23 以前では、これは同時に
756 ソート文字列のためのクエリー引数の解析も無効にします。
758 この挙動は Apache
2.0.23 では
759 <a href=
"#indexoptions.ignoreclient"><code>IndexOptions
760 IgnoreClient
</code></a> で制御されるようになっています。
</dd>
762 <dt><a name=
"indexoptions.suppressdescription" id=
"indexoptions.suppressdescription">SuppressDescription
</a></dt>
764 <dd>これは FancyIndexing におけるファイルの説明を消去します。
767 文字の空白を稼ぐことができます。 ファイルの説明に関する情報は、
768 <code class=
"directive"><a href=
"#adddescription">AddDescription
</a></code>
769 をご覧下さい。また、説明のコラムサイズを制限する
770 <code><a href=
"#indexoptions.descriptionwidth">DescriptionWidth
</a></code>
771 インデックスオプションもご覧下さい。
</dd>
773 <dt><a name=
"indexoptions.suppresshtmlpreamble" id=
"indexoptions.suppresshtmlpreamble">SuppressHTMLPreamble
</a></dt>
776 <code class=
"directive"><a href=
"#headername">HeaderName
</a></code>
778 ディレクトリが実際に含んでいれば、標準的な HTML プリアンブル
779 (
<code><html
></code>,
<code><head
></code>,
<em>等
</em>) の後に、
780 モジュールはファイルの中身をインクルードします。
781 <code>SuppressHTMLPreamble
</code> オプションは、
783 モジュールがヘッダーファイルの中身から表示を始めます。
784 この場合、ヘッダーファイルは正しい HTML
786 ヘッダーファイルが存在しない場合は、プリアンブルは通常通り
789 <dt><a name=
"indexoptions.suppressicon" id=
"indexoptions.suppressicon">SuppressIcon
</a> (
<em>Apache
793 これは FancyIndexing の一覧からアイコンを消去します。
794 <code>SuppressIcon
</code> と
<code>SuppressRules
</code>
795 と組合わせることによって正しい HTML
3.2 の出力が得られます。
796 HTML
3.2 の最終規格は、
<code>img
</code> と
<code>hr
</code>
797 が
<code>pre
</code> ブロックに入る (FancyIndexing 一覧で書式に使われています)
800 <dt><a name=
"indexoptions.suppresslastmodified" id=
"indexoptions.suppresslastmodified">SuppressLastModified
</a></dt>
802 <dd>FancyIndexing 一覧において最終更新日時の表示を消去します。
</dd>
804 <dt><a name=
"indexoptions.suppressrules" id=
"indexoptions.suppressrules">SuppressRules
</a>
805 (
<em>Apache
2.0.23 以降
</em>)
</dt>
807 <dd>ディレクトリ一覧において水平区切り線 (
<code>hr
</code> タグ) を消去します。
808 <code>SuppressIcon
</code> と
<code>SuppressRules
</code>
809 と組合わせることによって正しい HTML
3.2 の出力が得られます。
810 HTML
3.2 の最終規格は、
<code>img
</code> と
<code>hr
</code>
811 が
<code>pre
</code> ブロックに入る (FancyIndexing 一覧で書式に使われています)
814 <dt><a name=
"indexoptions.suppresssize" id=
"indexoptions.suppresssize">SuppressSize
</a></dt>
816 <dd>FancyIndexing 一覧においてファイルサイズの表示を消去します。
</dd>
818 <dt><a name=
"indexoptions.trackmodified" id=
"indexoptions.trackmodified">TrackModified
</a>
819 (
<em>Apache
2.0.23 以降
</em>)
</dt>
822 ディレクトリの
<code>Last-Modified
</code> や
823 <code>ETag
</code> を含めます。
824 これは、オペレーティングシステムやファイルシステムが
825 適切な stat() の返り値を返す場合にのみ有効です。
826 いくつかの UNIX システム、OS2 の JFS や Win32 の NTFS
828 例えば、OS2 と Win32 FAT ボリュームはそうではありません。
829 この機能が有効になると、クライアントやプロキシは
830 <code>HEAD
</code> リクエストを行うことによって、
831 ファイル一覧の変化を追跡することができるようになります。
832 オペレーティングシステムによっては、新規ファイルや
834 ディレクトリ中のファイルのサイズや日付は追跡しないということに
836 <strong>既に存在するファイルのサイズや日付のスタンプが変化しても、
838 <code>Last-Modified
</code> ヘッダーを更新しません。
</strong>
840 このオプションを無効のままにしてください。
</dd>
842 <dt><a name=
"indexoptions.versionsort" id=
"indexoptions.versionsort">VersionSort
</a>
843 (
<em>Apache
2.0a3 以降
</em>)
</dt>
845 <dd><code>VersionSort
</code> キーワードはバージョン番号を含んだファイルが
848 それ以外の、説明や名前中の数となる部分文字列は
851 <div class=
"example"><h3>例:
</h3><p><code>
860 <p>番号が
0 から始まる場合は、端数と考えられます
</p>
862 <div class=
"example"><p><code>
870 <dt><a name=
"indexoptions.xhtml" id=
"indexoptions.xhtml">XHTML
</a>
871 (
<em>Apache
2.0.49 以降
</em>)
</dt>
873 <dd><code>XHTML
</code> キーワードを指定すると、
<code class=
"module"><a href=
"../mod/mod_autoindex.html">mod_autoindex
</a></code>
874 は HTML
3.2 の代わりに XHTML
1.0 のコードを出力するようになります。
</dd>
878 <dl><dt>増減指定できる IndexOptions
</dt>
881 <code class=
"directive">IndexOptions
</code>
882 ディレクティブの扱いで幾つかの大きな変化が導入されました。
887 <code class=
"directive">IndexOptions
</code>
888 ディレクティブは、現在では一つにマージされます。
890 <div class=
"example"><p><code>
891 <Directory /foo
>
892 <span class=
"indent">
893 IndexOptions HTMLTable
<br />
894 IndexOptions SuppressColumnsorting
899 <p>の結果は、次の指定と同一の結果になります。
</p>
901 <div class=
"example"><p><code>
902 IndexOptions HTMLTable SuppressColumnsorting
907 (
<em>すなわち
</em>、'+' や '-'
908 の接頭辞が付くキーワード) の追加。
</li>
911 <p>'+' や '-' 接頭辞の付いたキーワードに出会うとそれは、
912 その時点での
<code class=
"directive">IndexOptions
</code>
913 の設定 (これは上流のディレクトリを受け継ぎます)
915 しかしながら、接頭辞の付かないキーワードが処理された場合は、
916 受け継いだオプション全てとそれまで出会った増減設定全てが
917 消去されます。次の例を考えてみてください:
</p>
919 <div class=
"example"><p><code>
920 IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing
<br />
921 IndexOptions +SuppressSize
925 <code>IndexOptions
FancyIndexing
+SuppressSize
</code>
927 接頭辞の付かない
<code>FancyIndexing
</code>
931 <p>あるディレクトリにおいて上位のディレクトリに指定された設定に影響されることなく
932 <code class=
"directive">IndexOptions
</code> を設定したい場合、
933 <code>+
</code> や
<code>-
</code>
934 接頭辞の付かないキーワードで設定してください。
</p>
939 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
940 <div class=
"directive-section"><h2><a name=
"IndexOrderDefault" id=
"IndexOrderDefault">IndexOrderDefault
</a> <a name=
"indexorderdefault" id=
"indexorderdefault">ディレクティブ
</a></h2>
941 <table class=
"directive">
942 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>
943 ディレクトリインデックスの標準の順番付けを設定
</td></tr>
944 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>IndexOrderDefault Ascending|Descending
945 Name|Date|Size|Description
</code></td></tr>
946 <tr><th><a href=
"directive-dict.html#Default">デフォルト:
</a></th><td><code>IndexOrderDefault Ascending Name
</code></td></tr>
947 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
948 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
949 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
950 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
952 <p><code class=
"directive">IndexOrderDefault
</code> ディレクティブは
953 <code><a href=
"#indexoptions.fancyindexing">FancyIndexing
</a></code>
954 インデックスオプションと併せて用いられます。
955 デフォルトでは、FancyIndexing
956 のディレクトリ一覧はファイル名の昇順で表示されます。
957 <code class=
"directive">IndexOrderDefault
</code>
958 で、初期状態の表示順番を変えることができます。
</p>
960 <p><code class=
"directive">IndexOrderDefault
</code>
961 は二つの引数をとります。一つ目はソートの方向を指示する
962 <code>Ascending
</code> か
<code>Descending
</code> のいずれかです。
963 二つ目の引数は
<code>Name
</code>,
<code>Date
</code>,
964 <code>Size
</code> か
<code>Description
</code>
965 のいずれか一つのキーワードであって、
1つ目のソートキーを指定します。
966 2つ目のソートキーは
<em>常に
</em>ファイル名の昇順になります。
</p>
968 <p>このディレクティブと
<code><a href=
"#indexoptions.suppresscolumnsorting">SuppressColumnSorting
</a></code>
969 インデックスオプションとを組み合わせることで、
970 ディレクトリ一覧をある特定の順番でのみ表示するようにできます。
972 クライアントが別の順番でディレクトリ一覧をリクエストすることを防ぎます。
</p>
975 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
976 <div class=
"directive-section"><h2><a name=
"IndexStyleSheet" id=
"IndexStyleSheet">IndexStyleSheet
</a> <a name=
"indexstylesheet" id=
"indexstylesheet">ディレクティブ
</a></h2>
977 <table class=
"directive">
978 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>ディレクトリインデックスに CSS スタイルシートを追加する
</td></tr>
979 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>IndexStyleSheet
<var>url-path
</var></code></td></tr>
980 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
981 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
982 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
983 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
985 <p><code class=
"directive">IndexStyleSheet
</code> ディレクティブは
986 インデックス表示に使用される CSS のファイル名を設定します。
988 <div class=
"example"><h3>例
</h3><p><code>
990 IndexStyleSheet
"/css/style.css"
994 <div class=
"top"><a href=
"#page-header"><img alt=
"top" src=
"../images/up.gif" /></a></div>
995 <div class=
"directive-section"><h2><a name=
"ReadmeName" id=
"ReadmeName">ReadmeName
</a> <a name=
"readmename" id=
"readmename">ディレクティブ
</a></h2>
996 <table class=
"directive">
997 <tr><th><a href=
"directive-dict.html#Description">説明:
</a></th><td>インデックス一覧の最後に挿入されるファイルの名前
</td></tr>
998 <tr><th><a href=
"directive-dict.html#Syntax">構文:
</a></th><td><code>ReadmeName
<var>filename
</var></code></td></tr>
999 <tr><th><a href=
"directive-dict.html#Context">コンテキスト:
</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess
</td></tr>
1000 <tr><th><a href=
"directive-dict.html#Override">上書き:
</a></th><td>Indexes
</td></tr>
1001 <tr><th><a href=
"directive-dict.html#Status">ステータス:
</a></th><td>Base
</td></tr>
1002 <tr><th><a href=
"directive-dict.html#Module">モジュール:
</a></th><td>mod_autoindex
</td></tr>
1004 <p><code class=
"directive">ReadmeName
</code> ディレクティブは、
1005 インデックスの終わりに付け加えられるファイルの名前を設定します。
1006 <var>filename
</var> は挿入するファイルの名前で、
1007 一覧の行われている位置から相対的なものとして解釈されます。
1008 <var>filename
</var> がスラッシュで始まる場合は、
1009 <code class=
"directive"><a href=
"../mod/core.html#documentroot">DocumentRoot
</a></code>
1012 <div class=
"example"><h3>例
</h3><p><code>
1013 ReadmeName FOOTER.html
1016 <div class=
"example"><h3>例
2</h3><p><code>
1017 ReadmeName /include/FOOTER.html
1020 <p>より詳細にまでこの挙動について記述している
<code class=
"directive"><a href=
"#headername">HeaderName
</a></code>
1025 <div class=
"bottomlang">
1026 <p><span>言語:
</span><a href=
"../en/mod/mod_autoindex.html" hreflang=
"en" rel=
"alternate" title=
"English"> en
</a> |
1027 <a href=
"../ja/mod/mod_autoindex.html" title=
"Japanese"> ja
</a> |
1028 <a href=
"../ko/mod/mod_autoindex.html" hreflang=
"ko" rel=
"alternate" title=
"Korean"> ko
</a> |
1029 <a href=
"../tr/mod/mod_autoindex.html" hreflang=
"tr" rel=
"alternate" title=
"Türkçe"> tr
</a></p>
1030 </div><div id=
"footer">
1031 <p class=
"apache">Copyright
2009 The Apache Software Foundation.
<br />Licensed under the
<a href=
"http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version
2.0</a>.
</p>
1032 <p class=
"menu"><a href=
"../mod/">モジュール
</a> |
<a href=
"../mod/directives.html">ディレクティブ
</a> |
<a href=
"../faq/">FAQ
</a> |
<a href=
"../glossary.html">用語
</a> |
<a href=
"../sitemap.html">サイトマップ
</a></p></div>