Satistfy any not working as expected
Arno0x0x
nginx-forum at nginx.us
Tue May 19 18:20:39 UTC 2015
Hi Maxim,
Thanks for your answer. I'm actually using a proper URI in the auth_request
parameter and the PHP script works fine
(https://github.com/Arno0x/TwoFactorAuth), my example was dumb.
For the records, here's what I did to make it work exactly as I expect:
simply remove the "deny all;" statement.
As a result :
- Any local network IP gets a straight access
- Any other IP has to go through the auth_request
This makes sense to me as a "satisfy any" coupled with a "deny all;" would
always match "all" and refuse access.
Not sure why all configuration examples we can find on the web mention the
"deny all;" statement, but this fails for me.
By the way, many thanks for all the work done on Nginx !
Cheers,
Arno
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258955,258993#msg-258993
More information about the nginx
mailing list