Basic http authentication

Jerome St-pierre lists at ruby-forum.com
Tue Aug 25 23:17:55 MSD 2009


Never mind I solved it. You should have told me to go RTFM over there: 
http://wiki.nginx.org/NginxHttpAuthBasicModule ;)

I just had to move the 2 lines below under the server context:

auth_basic "Restricted Access";
auth_basic_user_file /var/www/mywebsite/public/.htpasswd;

I didn't understand the location context is meant for virtual host.

Thanks for you work Igor, you really are an open source hero!





-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list