ServerName www.kkoba.com <-- これを指定すると、ディレクトリの最後の/を補完する
ServerType standalone <-- inetdからではなくstandaloneで起動
ServerAdmin webmaster@kkoba.com <-- 管理者のメールアドレス
ServerTokens ProductOnly <-- Server情報は Apache のみ表示
ServerSignature Off <-- エラーページ等にバージョン情報を表示しない
DocumentRoot "/home/httpd/html" <-- /var/www.htmlから変更
<IfModule mod_dir.c>
DirectoryIndex index.html index.shtml <-- ファイル名が省略された時はindex.htmlかindex.shtml
</IfModule>
<Directory /> <-- 全体の設定。配下のディレクトリに継承される。
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/httpd/html"> <-- /var/www.htmlから変更
# Options Indexes FollowSymLinks MultiViews <-- コメント化。FollowSymLinksだけが/から継承される。
AllowOverride All <-- ディレクトリ毎に.htaccessファイルでの制御を可能にする。
Order allow,deny
Allow from all
</Directory>
Alias /icons/ "/home/httpd/icons/" <-- 標準の/var/www/icons/から変更
<Directory "/home/httpd/icons">
# Options Indexes MultiViews <-- コメント化。FollowSymLinksだけが/から継承される。
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" <-- 標準の/var/www/cgi-bin/から変更
<Directory "/home/httpd/cgi-bin">
Options None
AllowOverride All <-- ディレクトリ毎に.htaccessファイルでの制御を可能にする。
Order allow,deny
Allow from all
</Directory>
|