ドキュメントルートのOptions設定
カテゴリ:Apache 2.0の設定
日時:2004/10/23 22:39
最期に、使用するディレクトリのパスとOptionsを設定する。
まずはドキュメントルート。
<Directory /var/www/localhost/htdocs>
Options -Indexes FollowSymLinks MultiViews
</Directory>
を
<Directory /home/httpd/html>
Options -Indexes Includes FollowSymLinks
</Directory>
に修正。
ドキュメントルートを変更しているので、<Directory>のパスを修正。また、SSIを使うのでIncludesを追加。また、多言語対応する余裕はないのでMultiViewsは削除(残しておいても問題ないけど)。
さらに、
<Directory /var/www/localhost/cgi-bin>
と
<Directory /var/www/localhost/icons>
を、それぞれ
<Directory /home/httpd/cgi-bin>
と
<Directory /home/httpd/icons>
に修正。ただ、考えてみたらいまのところCGIを使う予定はないし、IndexesはOptionsで無効化しているのでiconsも必要ないんだな……。まぁいいか。
以上で基本的な設定は完了。
# /etc/init.d/apache2 restart
でApacheを再起動して、正常に起動するかどうかを確認する。
コメント
まだコメントはありません


Reichsarchiv ~世界帝王事典~
京極夏彦作品人名辞典