最期に、使用するディレクトリのパスと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を再起動して、正常に起動するかどうかを確認する。