用户idd的AllowOverride


Answers:


3

无法在<Location>或类似的块中设置它。所以你必须解决它。在我的默认配置中使用以下内容,这似乎是一种有用的方法(当然,如果您更改UserDir路径,则需要调整路径)

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>


0

这取决于您的设置。为了使最新的Debian / Apache2能够访问http:// host / ~user,必须启用“userdir”模块。您需要编辑此模块的配置文件以配置AllowOverride:

vi /etc/apache2/mods-enabled/userdir.conf

此更新后需要重新启动Apache:

sudo service apache2 restart
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.