Ner*_*ros 3 authentication .htaccess prompt .htpasswd
我正在尝试使用“.htaccess”和“.htpasswd”保护文件夹。
我使用http://www.tools.dynamicdrive.com/password/来生成文件。
将它们复制到相应的文件夹中。
当我尝试访问受保护的文件夹时,收到登录提示。
输入错误的登录详细信息,将被发送到错误页面。
都好。
现在,在没有任何更改的情况下,我重新访问该页面并尝试再次登录以访问受保护的文件夹,它只是抛出一个错误,没有登录框。
如果我删除 .htaccess,我可以再次进入该文件夹而不会出现错误。
替换 .htacces 后,我再次收到错误,仍然没有登录框。
我尝试重新生成一组新的文件、用户/通行证组合,并对 .htaccess 进行轻微修改,只是为了尝试获取某种形式的响应。
我检查了任何字节标记,两个文件都是干净的 UTF-8。
这是怎么回事?为什么我不再收到提示?
顺便说一句,日志应该在哪里?我找到的只是一些访问日志,其中没有任何有用的内容。
服务器上的站点位置
/home/labvccom/
Run Code Online (Sandbox Code Playgroud)
/home/labvccom/public_html/admin/.htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /htpasswords/.htpasswd
AuthGroupFile /dev/null
require valid-user
Run Code Online (Sandbox Code Playgroud)
/home/labvccom/htpasswords/.htpasswd [用户:admin | 通行证:密码]
admin:02yd6IWnPes66
Run Code Online (Sandbox Code Playgroud)
这是我在没有登录提示的情况下抛出错误时得到的页面
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@labvc.com.au and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_fcgid/2.3.5 Phusion_Passenger/2.2.15 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at labvc.com.au Port 80
Run Code Online (Sandbox Code Playgroud)