【发布时间】:2014-06-06 09:39:01
【问题描述】:
.htaccess 文件背后的代码:
AuthType Basic
AuthName "restricted area"
AuthUserFile ".htpasswd"
require valid-user
.htpasswd 文件背后的代码:
user121:$apr1$bVI1xobF$2ius9YiPaElsFDjD2DK5/0
我使用正确的凭据登录,这是我每次登录时得到的:
Server error!
The server encountered an internal error and was unable to complete your request.
Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
更新:
Apache 错误日志:
[Fri Jun 06 20:42:30.503554 2014] [authn_file:error] [pid 7536:tid 1760] (OS 2)
The system cannot find the file specified. : [client ::1:58747] AH01620: Could
not open password file: C:/xampp/apache/.htpasswd, referer:
http://localhost/manage/articles/
我无法将文件放在我的虚拟主机上的 xampp/apache 文件夹中?
【问题讨论】:
-
你的 Apache 错误日志是怎么说的?
-
我更新了问题!