How to bypass http auth for certain IPs?


#1

Hey all,

I want to impose an auth_basic for people connecting from outsite but
for people connecting from localhost they should be able to bypass the
auth, the authentication should not be required to them, any idea how
to do that admins?

Here is my actual config and how I used to do it on apache:

http://tinyurl.com/d2kzhe

Thanks in advance,

Pat


#2

I found out:

satisfy any;
allow 127.0.0.1;
deny all;
auth_basic “Registered”;
auth_basic_user_file /etc/nginx/htpasswd;