access lists and auth basic
Igor Sysoev
is at rambler-co.ru
Sat Jul 7 22:35:14 MSD 2007
On Sat, Jul 07, 2007 at 08:18:29PM +0930, Kingsley Foreman wrote:
> proxy_buffer_size 32768k;
> proxy_buffers 4 32768k;
>
> 2007/07/07 20:17:08 [info] 32272#0: the configuration file
> /etc/nginx/nginx.conf syntax is ok
> 2007/07/07 20:17:08 [info] 32272#0: the configuration file
> /etc/nginx/nginx.conf was tested successfully
>
>
> the error log printed
> 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"
It seems it's bug in nginx.
Try attached patch. The error message then should be:
[alert] ... upstream split a header line in FastCGI records while
reading response header from upstream, ...
If so, then I on the right way - currently nginx does not support
HTTP headers split between FastCGI records. The PHP stdout FastCGI records
are big enough - 8K, so the split is seldom case (large cookies).
This bug/feature could be fixed.
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/modules/ngx_http_fastcgi_module.c
===================================================================
--- src/http/modules/ngx_http_fastcgi_module.c (revision 591)
+++ src/http/modules/ngx_http_fastcgi_module.c (working copy)
@@ -1144,7 +1144,7 @@
return NGX_OK;
}
- if (u->buffer.pos == u->buffer.last) {
+ if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
return NGX_AGAIN;
}
More information about the nginx
mailing list