AllowOverrideがNoneのときは.htaccessは無視される。
None以外のときは.htaccessが参照される。
.htaccessに問題があるとそのディレクトリのファイルはエラーになって参照できなくなる。
ような動きをするので注意する。
経緯
<Directory /var/www/public_html>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all
</Directory>AllowOverrideをNoneからAuthConfigに変えたらなぜか全然違うエラーが出た。
/var/www/public_html/.htaccess: DirectoryIndex not allowed here
.htaccessを見たら次が書いてあった。コメントアウトしたら直った。
DirectoryIndex index.php index.htm index.html