在AEM Dispatcher中配置基本身份验证后,日志中显示“AH01620:无法打开密码文件”

重命名.htpasswd文件以删除初始“。” 句点标记(例如:将“.htpasswd”更改为“_htpasswd”)。

描述 description

环境
配置了基本身份验证的Adobe Experience Manager (AEM) as a Cloud Service
已在/conf.d文件夹中添加一个.htpasswd文件。

问题
配置 基本身份验证 后日志中的“Error "AH01620: Could not open password file: /etc/httpd/conf.d/.htpasswd”。

[ authn_file:error]  [ pid 241:tid 140454739073848]  (2)No such file or directory: [ client 000.00.00.000:0]  AH01620: Could not open password file: /etc/httpd/conf.d/.htpasswd

解决方法 resolution

解决步骤
重命名.htpasswd文件以删除初始“。” 句点标记(例如:将“.htpasswd”更改为“_htpasswd”)。

原因
以“。”开头的文件 在预处理配置时,期间标记被视为隐藏并被删除。

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f