apache - 密码保护目录不提示
问题描述
我正在运行一个只有 FTP 访问权限的 Windows NT 服务器。我正在尝试使用 .htaccess / .htpasswd 对目录进行密码保护,但无论是否安装了它,我仍然可以在没有提示的情况下访问目录中的页面。
我的 .htaccess 看起来像这样。
ErrorDocument 401 /401.html
AuthType Basic
AuthName "Password Required"
# path has been blocked out
AuthUserFile \hshome\xxx\xxx\xxx/.htpasswd
Options +FollowSymLinks
Order Deny,Allow
Satisfy any
Deny from All
Require valid-user
Allow from env=allow
什么会导致这种情况发生?
解决方案
推荐阅读
- vue-i18n - 如何在 Vue i18n 插件中获取当前语言环境?
- scala - 借助 BigDL 库,TransE 的损失在边际值处达到稳定水平
- string - 如何将字符串格式化为日期时间列并跳过空白值?
- python - 现在不推荐使用python 2,我们还需要使用venv来创建虚拟环境吗?
- ffmpeg - 如何将现场活动视频摄取到流媒体平台进行直播?
- python - 写海量,定制信
- apache-flink - Flink - 使用重新平衡影响事件时间处理
- python - Django-admin 错误:没有这样的表 auth_user
- react-native - 使用日历 API 将事件插入默认日历
- python - 当我尝试在 Windows 10 上升级 pip 时,如何解决此错误(无法找到资源 t32.exe)?