Hitachi

 Hitachi Application Server V10 定義リファレンスWindows®用)


2.3.1 <Directory>

特定のディレクトリーに対してディレクティブを定義する場合に指定します。

説明

特定のディレクトリーに対してディレクティブを定義する場合に指定します。ディレクトリー名にディレクトリー名を指定し、そのディレクトリーとサブディレクトリーだけに有効なディレクティブを定義するブロックを指定できます。

ディレクトリー名は、絶対パスで指定してください。

書式

<Directory ディレクトリー名> ディレクティブ [ディレクティブ ...] </Directory>

記述できる場所

httpsd.conf<VirtualHost>

記述例

<Directory />                                         ...1.
     Options None                                     ...2.
     AllowOverride None                               ...3.
</Directory>                                          ...4.
 
<Directory "Application Serverのインストールディレクトリー/httpsd/htdocs">  ...5.
     Options Indexes                                  ...6.
     AllowOverride None                               ...7.
     Order allow,deny                                 ...8.
     Allow from all                                   ...9.
</Directory>                                          ...10.
  1. ルートディレクトリーの定義

  2. 機能はすべて無効

  3. すべての上書き禁止

  4. 定義終わり

  5. Application Serverのインストールディレクトリー/httpsd/htdocsディレクトリーの定義

  6. ディレクトリーインデックス表示可

  7. すべての上書き禁止

  8. Allowディレクティブの指定をDenyディレクティブの指定より先に評価

  9. すべてのホストからのアクセスを許可

  10. 定義終わり