Allow some IP's to bypass Basic Auth in Local site

Hi Guys

I just moved from Mamp after 10 years to Local and loving it :slight_smile:

I have followed the instructions on this page to set up http auth and they work perfectly.

I would like to allow certain IP’s to bypass HTTP Auth. I have tried the below to no avail as auth is still requested?

Can you advise where I am going wrong?

location / {

#auth check - satisfy if ip or key match
satisfy any;

allow; --> This rule allows not just local but all traffic to bypass which is a little odd?

deny  all;

auth_basic  "Please log in to view development site";

auth_basic_user_file /pathto/.htpasswd";

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.