ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Лишние символы в ответе
  • From: Mikhail Mazursky <ash2kk@xxxxxxxxx>
  • Date: Wed, 20 Oct 2010 17:41:19 +0600
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=vrK6H/dZKyDpmSerQGqK4uVapdWb/3RMgwy6MW4kj1c=; b=P3BFrBfWX0FOhbEH5Sv05BLtWQr8ERMDW4zjKYTMVCvT/7c5gwboBI1UcHOALX/leu xRRdCV4RQc0naSF9/tqOIifkcAH+8X+HWluKsELYt7r3bGGLKx3vlvGJaVjQLfJsL0st EyGRT311u5AgEEk6c0GEMXIt6B7TcK6xvAx3U=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Q3ot7lGlqggfbl1wrUPpP9Msj8nfqS94rxoMgbPmpR61gPMOFKVv7NsKuHuwy8GNcC SuY2ws2qpmPXEOGE+5nLlTuANx6hL1QZwWGPcoPr+Z6kjwnnIWamGAOtJr+9QW0p3hfY vmSi+Tw1gzzOptPnlSiclvdhGvOXDFpuPmgXc=
  • In-reply-to: <d47561b9ff855cd8a5886255d71a320e.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <d47561b9ff855cd8a5886255d71a320e.NginxMailingListRussian@xxxxxxxxxxxxxxx>

20 октября 2010 г. 17:32 пользователь dr.gigabit <nginx-forum@xxxxxxxx> написал:
> Добрый день!
>
> Использую 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
Предполагаю что ошибка из-за HTTP/1.1 на стороне апача. Настройте его
на HTTP/1.0.

> 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 --
> все ок.

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.