Re: No authentication prompt with if block

2014-02-08 Thread Maxim Dounin
Hello! On Sat, Feb 08, 2014 at 08:43:53AM -0800, Grant wrote: > >> Authentication works fine if I don't include the if block but I'd like > >> to allow only a certain user access to this server block. I get a 403 > >> in the browser without any prompt for authentication. > >> > >> auth_basic "Au

Re: No authentication prompt with if block

2014-02-08 Thread Grant
>> Authentication works fine if I don't include the if block but I'd like >> to allow only a certain user access to this server block. I get a 403 >> in the browser without any prompt for authentication. >> >> auth_basic "Authentication Required"; >> auth_basic_user_file htpasswd; >> if ($remote_u

Re: No authentication prompt with if block

2014-02-07 Thread Maxim Dounin
Hello! On Fri, Feb 07, 2014 at 10:05:32AM -0800, Grant wrote: > Authentication works fine if I don't include the if block but I'd like > to allow only a certain user access to this server block. I get a 403 > in the browser without any prompt for authentication. > > auth_basic "Authentication R

No authentication prompt with if block

2014-02-07 Thread Grant
Authentication works fine if I don't include the if block but I'd like to allow only a certain user access to this server block. I get a 403 in the browser without any prompt for authentication. auth_basic "Authentication Required"; auth_basic_user_file htpasswd; if ($remote_user != "myuser") {