satisfy problem

lhmwzy lhmwzy at gmail.com
Mon Apr 11 18:49:45 MSD 2011


this is not working..

2011/4/11 Igor Sysoev <igor at sysoev.ru>:
> On Fri, Apr 08, 2011 at 12:16:34PM +0800, lhmwzy wrote:
>> another problem:
>>
>> when use:
>>        location ^~ /ks/admin
>>        {
>>                satisfy any;
>>                allow 10.68.136.241/32;
>>                allow 10.66.23.80/32;
>>                deny all;
>>                auth_basic "passwd";
>>                auth_basic_user_file ksadminpasswd;
>>       }
>> then the 401 error page can not be customized,only show the default
>> 401error page:
>>
>> "401 Authorization Required
>> -------------------------------------------------------------------------------
>> nginx/0.9.7
>> ".
>
> The attached patch should fix the bug.
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>



More information about the nginx mailing list