Welcome! Log In Create A New Profile

Advanced

Re: Basic http authentication

Jerome St-pierre
August 25, 2009 03:17PM
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/.
Subject Author Posted

Basic http authentication

Jerome St-pierre August 25, 2009 10:50AM

Re: Basic http authentication

Jerome St-pierre August 25, 2009 01:52PM

Re: Basic http authentication

Jerome St-pierre August 25, 2009 03:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready