揮発性のメモ2

http://d.hatena.ne.jp/iww/

apache2の設定の勉強

AllowOverrideNoneのときは.htaccessは無視される。
None以外のときは.htaccessが参照される。
.htaccessに問題があるとそのディレクトリのファイルはエラーになって参照できなくなる。


ような動きをするので注意する。
経緯

<Directory /var/www/public_html>
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

AllowOverrideNoneからAuthConfigに変えたらなぜか全然違うエラーが出た。

/var/www/public_html/.htaccess: DirectoryIndex not allowed here

.htaccessを見たら次が書いてあった。コメントアウトしたら直った。

DirectoryIndex index.php index.htm index.html