Allow access to certain client addresses or use auth_basic

Hello Mailing list,

is there a way to do following in nginx server or location config.

  1. allow access to certain client addresses
  2. if the ip is not in the list, allow access by
    ngx_http_auth_basic_module

Thanks for any help.

Best Regards,
Basti

On Mon, Mar 30, 2015 at 10:45:49AM +0200, basti wrote:

Hi there,

is there a way to do following in nginx server or location config.

  1. allow access to certain client addresses
  2. if the ip is not in the list, allow access by ngx_http_auth_basic_module

Yes.

http://nginx.org/r/satisfy

f

Francis D. [email protected]

Thanks a lot!