/家庭/ my_home /的public_html只保护一个文件夹中的Apache与密码
AuthName "message"
AuthType Basic
AuthUserFile /home/my_home/.htpasswd
require valid-user
但这保护了我的所有网站,同时我想保护/ home/my_home/public_html/admin。在我的错误日志中,我看到:
/home/myhome/public_html/admin/.htaccess: <Directory not allowed here
尝试[this](http://www.addedbytes.com/blog/code/password-protect-a-directory-with-htaccess/) – 2013-04-23 12:05:24
将文件放在/ home/my_home/public_html/admin不/家/ my_home/public_html – ElSinus 2013-04-23 12:05:32
没有工作.....保护整个网站。我也将该文件移动到另一个文件,但没有结果 – francis 2013-04-23 12:10:35