Basic http authentication

Jerome St-pierre lists at
Tue Aug 25 23:17:55 MSD 2009

Never mind I solved it. You should have told me to go RTFM over there: ;)

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

More information about the nginx mailing list