小编Tec*_*ati的帖子

如何在Apache 2.2中完成"AuthType None"

http://httpd.apache.org/docs/trunk/mod/mod_authn_core.html#authtype谈论"AuthType None",并且有一个很棒的例子,说明我需要做什么 - 不幸的是,它似乎是2.3的新功能/2.4.2.2中有没有相同的功能?

身份验证类型无禁用身份验证.启用身份验证后,除非指定了其他身份验证类型,否则通常会由每个后续配置节继承.如果对经过身份验证的部分的子部分不需要身份验证,则可以使用身份验证类型None; 在以下示例中,客户端可以访问/ www/docs/public目录而无需进行身份验证:

<Directory /www/docs> 
AuthType Basic
AuthName Documents
AuthBasicProvider file
AuthUserFile /usr/local/apache/passwd/passwords
Require valid-user 
</Directory>

<Directory /www/docs/public>
AuthType None
Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)

authentication apache2.2

40
推荐指数
3
解决办法
7万
查看次数

标签 统计

apache2.2 ×1

authentication ×1