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