Welcome! Log In Create A New Profile

Advanced

Satistfy any not working as expected

May 18, 2015 04:48AM
Hi,

I'm facing an issue using the "satisfy any" directive. What I'm trying to achieve is quite simple:
- have an auth_request directive protecting the entire website (hence set at the server level in the config file)
- have no such authentication for the local network

I've put the following lines in my nginx config file, under the 'server' directive:

----------------------------
server {

satisfy any;
allow 192.168.0.0/24;
deny all;

auth_request /path/to/authRequestScript.php;
[...]
}
----------------------------

Although that works well for the local network (ie: no authentication required anymore), I get a "403 Forbidden" message when I'm connecting from the outside network where I would expect the usual authentication mecanism to be triggered.

All the exemples I found rely on the "location /" directive, but I'd like it to be at the server level.

What am I doing wrong ?

Thanks for any help,
Arno
Subject Author Posted

Satistfy any not working as expected

Arno0x0x May 18, 2015 04:48AM

Re: Satistfy any not working as expected

Maxim Dounin May 18, 2015 08:46AM

Re: Satistfy any not working as expected

Arno0x0x May 19, 2015 02:20PM

Re: Satistfy any not working as expected

Maxim Dounin May 19, 2015 03:18PM

Re: Satistfy any not working as expected

Arno0x0x May 20, 2015 01:12PM

Re: Satistfy any not working as expected

Maxim Dounin May 20, 2015 02:46PM

Re: Satistfy any not working as expected

Arno0x0x May 20, 2015 03:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
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