更新时间:2021-09-27 08:44:14
最可能的问题是这一行:
Most likely problem is this line:
AuthUserFile /.htpasswd
这一行应该提供密码文件的完整文件系统路径,例如
This line should provide full filesystem path to the password file e.g.
AuthUserFile /var/www/.htpasswd
要发现您的文件系统路径,您可以创建一个包含
To discover your filesystem path, you can create a PHP document containing
echo $_SERVER['DOCUMENT_ROOT'];