satisfy problem

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


this is working...TKS

2011/4/11 Igor Sysoev <igor at sysoev.ru>:
> On Mon, Apr 11, 2011 at 02:11:58PM +0400, Igor Sysoev wrote:
>> 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.
>
> A new better patch.
>
>
> --
> 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