Welcome! Log In Create A New Profile

Advanced

Re: Required Help on satisfy any setup

Francis Daly
February 24, 2015 04:00PM
On Tue, Feb 24, 2015 at 10:13:26AM -0500, mathi wrote:

Hi there,

> 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"

Missing semicolon on the previous line.

> auth_basic_user_file /etc/nginx/password;
> }

This can work on the first nginx, because it knows the real client address.

If you want it to work on the second nginx, you probably need to use
http://nginx.org/en/docs/http/ngx_http_realip_module.html - but I have
not tested that myself.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready