Error setting up http authentication - 500 Internal Serv

Igor Sysoev is at rambler-co.ru
Wed Mar 5 21:53:31 MSK 2008


On Wed, Mar 05, 2008 at 07:38:51PM +0100, Fernando Perez wrote:

> I had the same problem just minutes ago.
> 
> I solved it by specifying the absolute path to the password file.
> 
> Mine is located at: /etc/nginx/htpasswd
> 
> So in my configuration file I had tto put:
> 
> auth_basic_user_file /etc/nginx/htpasswd;

In this case in error_log should be message:

... [crit] ... open() "... /conf/passwd" failed (2: No such file or directory), ...

> If that helps you.
> 
> 
> > When i have the following two lines commented out i do not get any 
> > error.
> > #    auth_basic "osusu";
> > #    auth_basic_user_file conf/passwd;


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list