如何覆盖Apache';s摘要认证
我前面有一名乘客,是阿帕奇。我正在尝试选择性地对我的URL进行摘要身份验证。 我有下面的场景如何覆盖Apache';s摘要认证,apache,digest-authentication,Apache,Digest Authentication,我前面有一名乘客,是阿帕奇。我正在尝试选择性地对我的URL进行摘要身份验证。 我有下面的场景 位置/需要在领域Foo下进行摘要身份验证 位置/a不需要进行身份验证 位置/a/b需要在域栏下进行摘要身份验证 这是我的配置(或多或少): AuthName Foo AuthType摘要 AuthDigestDomain/ AuthUserFile/etc/apache2/foo_digest.users 需要有效用户 通融 满足任何 AuthName栏 AuthType摘要 授权域/a/b Auth
AuthName Foo
AuthType摘要
AuthDigestDomain/
AuthUserFile/etc/apache2/foo_digest.users
需要有效用户
通融
满足任何
AuthName栏
AuthType摘要
授权域/a/b
AuthUserFile/etc/apache2/bar_digest.users
需要有效用户
结果如下:
我对这个还不太熟悉。我做错了什么?请尝试使用authentication type none参数 AuthType无 AuthType无 通融 满足任何
您也可以将此作为评论发布,因为这不是一个完整的答案,是的,欢迎访问
<Location />
AuthName Foo
AuthType Digest
AuthDigestDomain /
AuthUserFile /etc/apache2/foo_digest.users
require valid-user
</Location>
<Location /a >
Allow from all
Satisfy Any
</Location>
<Location /a/b >
AuthName Bar
AuthType Digest
AuthDigestDomain /a/b
AuthUserFile /etc/apache2/bar_digest.users
require valid-user
<Location>