&引用;“客户端被服务器配置拒绝”;在apache2中设置密码保护后

&引用;“客户端被服务器配置拒绝”;在apache2中设置密码保护后,apache,.htaccess,password-protection,Apache,.htaccess,Password Protection,我在apache中创建了用于密码保护的.htaccess和.htpassword。然后,我修改了https.conf <Directory "/Library/WebServer/Documents"> Options Indexes FollowSymLinks MultiViews #AllowOverride None AllowOverride AuthConfig All Order allow,deny Allow from all

我在apache中创建了用于密码保护的.htaccess和.htpassword。然后,我修改了
https.conf

<Directory "/Library/WebServer/Documents">
    Options Indexes FollowSymLinks MultiViews
    #AllowOverride None
    AllowOverride AuthConfig All
    Order allow,deny
    Allow from all
</Directory>
当我设置
AllowOverride AuthConfig None
时,错误消失,则没有密码保护


这个怎么了?如何使用密码保护访问子目录?

按照上的说明,我添加了

<Directory "/Library/WebServer/Documents/moniwiki/data/cache/gnuplot">
Order allow,deny
Allow from all
</Directory>

命令允许,拒绝
通融

除非httpd.conf(或.htaccess文件)中有覆盖节,否则子目录将具有与其父目录相同的限制。如果/Library/WebServer/Documents已具有正确的密码保护,请尝试删除特定于映像目录的任何.htaccess或httpd.conf节,并让其从父目录继承。@Lotharyx:https.conf中没有其他.htaccess或任何其他设置,而/Library/WebServer/Documents中的设置除外。
<Directory "/Library/WebServer/Documents/moniwiki/data/cache/gnuplot">
Order allow,deny
Allow from all
</Directory>