auth_basic and satisfy allowing all traffic
nginx-forum at forum.nginx.org
Thu Apr 13 21:26:35 UTC 2017
Hi all -
I'm having an issue trying to get auth_basic and satisfy directives working
in tandem. If I use auth_basic/auth_basic_user_file on its own, I am
prompted for credentials as expected. However, if I added the
satisfy/allow/deny directives above, it seems that ALL traffic is allowed in
without prompting for auth.
Here's how I have it.
allow 38.103.XX.XXX/32; # HQIP
allow 38.118.XX.XXX/32; # User VPN IP
auth_basic "Site Restricted";
When I look though my access logs, I see the correct client IP as well.
nginx version is 1.10.1
Thank you for your help.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273629,273629#msg-273629
More information about the nginx