当前位置: 技术问答>linux和unix
.htaccess 权限文件的问题
来源: 互联网 发布时间:2015-01-22
本文导语: 我设置了一个目录的访问权限, /userhome/test 在其中建立了一个文件.htaccess .htaccess: AuthType Basic AuthName "Password Required" AuthUserFile /userhome/sec/password.file Require User test htpasswd -c /userhome/sec 输入密码成功 然后打开此...
我设置了一个目录的访问权限,
/userhome/test
在其中建立了一个文件.htaccess
.htaccess:
AuthType Basic
AuthName "Password Required"
AuthUserFile /userhome/sec/password.file
Require User test
htpasswd -c /userhome/sec
输入密码成功
然后打开此目录的时候,提示需要输入信息
但是输入后,提示出现错误,说是密码不匹配或者什么什么:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
请问这是什么原因,如何解决呢 ?
/userhome/test
在其中建立了一个文件.htaccess
.htaccess:
AuthType Basic
AuthName "Password Required"
AuthUserFile /userhome/sec/password.file
Require User test
htpasswd -c /userhome/sec
输入密码成功
然后打开此目录的时候,提示需要输入信息
但是输入后,提示出现错误,说是密码不匹配或者什么什么:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
请问这是什么原因,如何解决呢 ?
|
到apache版去问吧。