Forum: NGINX how to bypass http auth for certain IPs?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Patrick A. (Guest)
on 2009-02-07 05:48
(Received via mailing list)
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
Patrick A. (Guest)
on 2009-02-07 09:34
(Received via mailing list)
I found out:

satisfy any;
allow   127.0.0.1;
deny all;
auth_basic      "Registered";
auth_basic_user_file    /etc/nginx/htpasswd;
This topic is locked and can not be replied to.