combine basic auth and ip whitelisting
nginx-forum at nginx.us
Thu Apr 12 21:39:42 UTC 2012
I have set up Apache for an existing site to use either ip whitelisting
or basic authentication. If the user's IP is not on the IP whitelist, it
asks him for a password. My htaccess file looks something like this:
Deny from all
AuthName "Restricted Area"
Allow from 123.456.789.10
Allow from 123.456.789.11
Is it possible to do something like this with Nginx?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,225266,225266#msg-225266
More information about the nginx