Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3
Спасибо за подсказки.
Предлагаю свое временное (кривое), но
решение проблем passenger и nginx старше 1.1.3
Пытаюсь теперь решить обратную задачу -
подстроить passenger под nginx.
--- a/src/http/ngx_http_upstream.c.new 2011-10-29 20:40:15.000000000
+0400
+++ b/src/http/ngx_http_upstream.c 2011-10-29 22:05:38.000000000 +0400
@@ -1951,9 +1951,14 @@
r->headers_out.status = u->headers_in.status_n;
r->headers_out.status_line = u->headers_in.status_line;
- r->headers_out.content_length_n = u->headers_in.content_length_n;
+ u->headers_in.content_length_n = r->headers_out.content_length_n;
- u->length = u->headers_in.content_length_n;
+ if (r->headers_out.content_length_n != -1) {
+ u->length = (size_t) r->headers_out.content_length_n;
+
+ } else {
+ u->length = NGX_MAX_SIZE_T_VALUE;
+ }
return NGX_OK;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,217056,217522#msg-217522
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|