Error setting up http authentication - 500 Internal Serv

Fernando Perez lists at
Wed Mar 5 21:38:51 MSK 2008


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;

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;

Posted via

More information about the nginx mailing list