Welcome! Log In Create A New Profile

Advanced

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

October 29, 2011 03:15PM
Спасибо за подсказки.
Предлагаю свое временное (кривое), но решение проблем 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;
}
Subject Author Posted

NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

Мисбах-Соловьëв Вадим October 22, 2011 02:36PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

Мисбах-Соловьëв Вадим October 22, 2011 11:30PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

Maxim Dounin October 23, 2011 12:14PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

mva October 23, 2011 12:24PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

Maxim Dounin October 23, 2011 12:44PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

perestoronin October 23, 2011 05:14PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

perestoronin October 29, 2011 03:15PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

Maxim Dounin October 29, 2011 03:22PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

perestoronin October 29, 2011 03:27PM

Re: NginX-1.1.4 + Passenger (3.0.7, 3.0.9) + Rails3

perestoronin October 29, 2011 05:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready