access lists and auth basic

Kingsley Foreman kingsley at internode.com.au
Sat Jul 7 06:01:05 MSD 2007


Hi Igor,

thanks fot that, it worked a treat, the website is located here
http://games.internode.on.net/

It was running apache it is now running nginx.

Im only seeing 1 problem now (and of course it is effecting my girlfriend so 
it is making my life hell,
she has a fairly large cookie in here  browser, it looks like this

[phpbb2mysql_t] =>
a:136:{i:117681;i:1183731523;i:117751;i:1183004234;i:117741;i:1182858475;i:117559;i:1182859156;i:117767;i:1182898471;i:117672;i:1183004539;i:117797;i:1182905850;i:117801;i:1182866711;i:117800;i:1182905182;i:117821;i:1182909508;i:117625;i:1182905825;i:117652;i:1182905872;i:117822;i:1182907192;i:117409;i:1182907215;i:117749;i:1183731546;i:117825;i:1183003841;i:117823;i:1182908131;i:117816;i:1182911343;i:116709;i:1183003848;i:117833;i:1182917770;i:117834;i:1183094211;i:117839;i:1183039741;i:117837;i:1183003843;i:117827;i:1182917784;i:117913;i:1183127254;i:117891;i:1183027914;i:15746;i:1183107230;i:117924;i:1183004039;i:117432;i:1183008801;i:117932;i:1183041761;i:117928;i:1183015077;i:117921;i:1183015082;i:117918;i:1183183505;i:117843;i:1183042921;i:117789;i:1183027861;i:117937;i:1183107036;i:117943;i:1183039744;i:117957;i:1183339353;i:106804;i:1183298305;i:117802;i:1183335116;i:116641;i:1183719699;i:94600;i:1183035794;i:80464;i:1183035796;i:117980;i:1183543304;i:117971;i:1183082851;i:117992;i:1183075431;i:117759;i:1183041795;i:118000;i:1183181162;i:118009;i:1183094100;i:106501;i:1183371679;i:116263;i:1183083066;i:118016;i:1183212667;i:117221;i:1183513889;i:118005;i:1183272425;i:118023;i:1183090397;i:117994;i:1183100819;i:117901;i:1183091961;i:118026;i:1183109808;i:118021;i:1183162802;i:118018;i:1183338099;i:118030;i:1183094133;i:117905;i:1183094143;i:117887;i:1183094263;i:89172;i:1183099149;i:118035;i:1183162799;i:116916;i:1183101595;i:117763;i:1183279802;i:118060;i:1183169466;i:118088;i:1183169502;i:118085;i:1183169537;i:118070;i:1183169556;i:117998;i:1183338103;i:118090;i:1183694854;i:117906;i:1183169625;i:117945;i:1183172039;i:118082;i:1183185897;i:118110;i:1183299046;i:118102;i:1183351700;i:117910;i:1183177423;i:117634;i:1183177435;i:118084;i:1183177443;i:117673;i:1183181879;i:118114;i:1183182091;i:117893;i:1183210947;i:118092;i:1183274999;i:118118;i:1183185974;i:118120;i:1183186490;i:118121;i:1183186890;i:118123;i:1183350536;i:118126;i:1183603631;i:118128;i:1183338081;i:118154;i:1183274997;i:84843;i:1183206720;i:49349;i:1183206747;i:7793;i:1183206764;i:24654;i:1183207016;i:118163;i:1183349194;i:118168;i:1183215384;i:118167;i:1183513917;i:118169;i:1183215670;i:111384;i:1183215684;i:118171;i:1183216564;i:118072;i:1183302030;i:117942;i:1183338105;i:118173;i:1183217343;i:117356;i:1183217399;i:99458;i:1183217429;i:115396;i:1183254871;i:118040;i:1183354265;i:89713;i:1183632570;i:118185;i:1183254573;i:118183;i:1183694993;i:118179;i:1183254598;i:118184;i:1183266775;i:118206;i:1183280128;i:118001;i:1183266834;i:42548;i:1183270288;i:115349;i:1183272405;i:114847;i:1183467715;i:118217;i:1183388028;i:13782;i:1183293656;i:118256;i:1183354260;i:114852;i:1183338058;i:117774;i:1183333610;i:91916;i:1183297712;i:92122;i:1183297714;i:118259;i:1183333215;i:115710;i:1183300648;i:112441;i:1183302285;i:115491;i:1183302301;i:115373;i:1183302314;i:116339;i:1183302366;i:117653;i:1183302437;i:118273;i:1183305131;i:118053;i:1183302544;i:118080;i:1183302582;}
As fair as I know this could be unrealisticly large, however it is returning 
this error page

2007/07/07 11:21:04 [error] 2197#0: *59969 upstream sent too big header 
while reading response header from upstream, client: 121.45.170.6, server: 
games.internode.on.net, URL: "/forums/viewtopic.php?p=1483389", upstream: 
"fastcgi://127.0.0.1:10005", host: "games.internode.on.net"

any suggestions on how to fix this.

PS, I love your software hate your doco :)

Kingsley

----- Original Message ----- 
From: "Igor Sysoev" <is at rambler-co.ru>
To: <nginx at sysoev.ru>
Sent: Friday, July 06, 2007 5:15 PM
Subject: Re: access lists and auth basic


> On Fri, Jul 06, 2007 at 12:36:45PM +0930, Kingsley Foreman wrote:
>
>> Hi guys,
>>
>> im trying to work out if something is possible while i try to move a 
>> server
>> from apache to nginx
>>
>> i currently have a .htaccess file that looks something like this
>>
>> require valid-user
>> AuthType Basic
>> AuthName "Admin Access Only"
>> AuthUserFile /pwds
>> Satisfy any
>> order deny,allow
>> allow from xxx.xxx.xxx.xxx
>> allow from xxx.xxx.xxx.xxx
>> deny from all
>>
>> Im trying to make it so that if the allow from addresses don't match it
>> will then try to use basic Auth instead,
>> this method works in apache however i can get it to work in nginx, is it
>> possible to do it and if so how?
>
> location /closed/ {
>
>     satisfy_any  on;
>
>     allow  ...;
>     allow  ...;
>     deny   all;
>
>     auth_basic  "Admin Access Only";
>     auth_basic_user_file  /pwds;
>
>     ...
> }
>
>
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 





More information about the nginx mailing list