Authentication nginx:不询问localnet的密码+;满足任何理由403
我尝试解决类似于此处所述的问题: 我用ldap身份验证保护我的所有站点 但我希望有一个“位置”可以在没有 为localnet进行身份验证,因此我有如下配置:Authentication nginx:不询问localnet的密码+;满足任何理由403,authentication,nginx,ldap,Authentication,Nginx,Ldap,我尝试解决类似于此处所述的问题: 我用ldap身份验证保护我的所有站点 但我希望有一个“位置”可以在没有 为localnet进行身份验证,因此我有如下配置: server { auth_ldap "LDAP Authentication"; auth_ldap_servers auth1; location /for_localnet/ { satisfy any; allow 192.168.0.0/16; deny all; #I try wi
server {
auth_ldap "LDAP Authentication";
auth_ldap_servers auth1;
location /for_localnet/ {
satisfy any;
allow 192.168.0.0/16;
deny all;
#I try with and without lines bellow
auth_ldap "LDAP Authentication";
auth_ldap_servers auth1;
}
}
它在“localnet(192.168.x.x)”中正常工作,但在
从internet访问如果我打开,则显示错误403
所以我必须打开它并询问密码,然后我才能打开它
,那么问题是如何强制nginx询问密码
当我从internet打开“”时?问题出在nginx 1.4.6中的bug中(Ubuntu 14.04.2 LTS的默认设置)。 这里描述的是: