Welcome! Log In Create A New Profile

Advanced

Required Help on satisfy any setup

February 24, 2015 10:13AM
I am using 2 layer NGINX. Fist layer NGINX works as a load balancer and forwards all HTTP traffic another NGINX based on HTTP or HTTPS.

When i setup below conditions its not working.

location / {
satisfy any;
allow xx.xx.xx.xx/32;
allow yy.yy.yy.yy/32;
auth_basic "Restricted"
auth_basic_user_file /etc/nginx/password;
}

When I try accessing my / from IP xx.xx.xx.xx its throwing me the 401 error, This log is not logging on my 2nd layer NGINX, only LB NGINX logging this information.

If i change allow to any instead of specific IP things works fine. without 401 error. Some one can suggest me why the alloe not working for the specific IP?

I tried both allow method,

allow xx.xx.xx.xx and allow xx.xx.xx.xx/32;

Any help would be appreciated.

thanks,
Subject Author Posted

Required Help on satisfy any setup

mathi February 24, 2015 10:13AM

Re: Required Help on satisfy any setup

mathi February 24, 2015 10:50AM

Re: Required Help on satisfy any setup

Francis Daly February 24, 2015 04:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready