好吧,这还不是问题,但我不明白为什么 Apache 正在读取.htaccess
文件......我这样做:
grep -R "AllowOverride" /etc
我有:
/etc/apache2/apache2.conf:# for additional configuration directives. See also the AllowOverride
/etc/apache2/sites-available/default: AllowOverride None
/etc/apache2/sites-available/default: AllowOverride None
/etc/apache2/sites-available/default: # AllowOverride None
/etc/apache2/sites-available/default:# AllowOverride None
/etc/apache2/sites-available/default-ssl: AllowOverride None
/etc/apache2/sites-available/default-ssl: AllowOverride None
/etc/apache2/sites-available/default-ssl: AllowOverride None
/etc/apache2/sites-available/default-ssl: AllowOverride None
/etc/apache2/conf.d/security:# AllowOverride None
/etc/apache2/conf.d/localized-error-pages:# AllowOverride None
/etc/apache2/mods-available/userdir.conf: AllowOverride FileInfo AuthConfig Limit Indexes
/etc/apache2/mods-available/alias.conf: AllowOverride None
/etc/apache2/sites-enabled/000-default: AllowOverride None
/etc/apache2/sites-enabled/000-default: AllowOverride None
/etc/apache2/sites-enabled/000-default: # AllowOverride None
/etc/apache2/sites-enabled/000-default:# AllowOverride None
/etc/apache2/mods-enabled/alias.conf: AllowOverride None
grep: /etc/blkid.tab: No such file or directory
似乎我没有 AllowOverride all,那么它为什么有效?