How to bypass http auth for certain IPs?


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:

Thanks in advance,



I found out:

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