Re: Required Help on satisfy any setup

2015-02-24 Thread Francis Daly
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; > all

Re: rewrite rules cms phpwcms not working

2015-02-24 Thread Francis Daly
On Mon, Feb 23, 2015 at 01:51:41PM -0500, dansch wrote: Hi there, > after some testing I use this rules now. These are working fine with my > environment. That's good to hear. > location ^~ /config/phpwcms/ { deny all; } > location ^~ /filearchive/ { deny all; } > location ^~ /upload/

Re: Required Help on satisfy any setup

2015-02-24 Thread mathi
I do use following proxy set options. ocation / { proxy_pass http://backend; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Forwarded-Port 80;

Required Help on satisfy any setup

2015-02-24 Thread mathi
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_use