Лишние символы в ответе

dr.gigabit nginx-forum на nginx.us
Ср Окт 20 15:32:08 MSD 2010


Добрый день!

Использую nginx + Apache. В ответ получаю
лишние символы. Вот часть запроса

2010/10/20 13:14:58 [debug] 124400#102156: *1 WSARecv: fd:476 rc:0 410
of 1024
2010/10/20 13:14:58 [debug] 124400#102156: *1 http request line: "GET
/start HTTP/1.1"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http uri: "/start"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http args: ""
2010/10/20 13:14:58 [debug] 124400#102156: *1 http exten: ""
2010/10/20 13:14:58 [debug] 124400#102156: *1 http process request
header line
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "Host:
localhost"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.9.2.10) Gecko/20100914
Firefox/3.6.10"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header:
"Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header:
"Accept-Encoding: gzip,deflate"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header:
"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "Keep-Alive:
115"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "Connection:
keep-alive"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header: "Cookie:
locale=en-US"
2010/10/20 13:14:58 [debug] 124400#102156: *1 http header done

вот такой ответ (привожу заголовки):

2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy status 200 "200
OK"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header: "Date:
Wed, 20 Oct 2010 11:14:58 GMT"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header:
"Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l
mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4
Perl/v5.10.1"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header:
"X-Powered-By: PHP/5.3.1"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header:
"Connection: close"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header:
"Transfer-Encoding: chunked"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header:
"Content-Type: text/html"
2010/10/20 13:15:01 [debug] 124400#102156: *1 http proxy header done
2010/10/20 13:15:01 [debug] 124400#102156: *1 HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Wed, 20 Oct 2010 11:15:01 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.1
Transfer-Encoding: chunked

На сколько я  понял, проблема из-за
Transfer-Encoding: chunked. Апач настроен по
умолчанию, если зайти напрямую без nginx --
все ок.

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,142665,142665#msg-142665




Подробная информация о списке рассылки nginx-ru