ðòïåëôù 


  áòèé÷ 


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: 502 Bad Gateway


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: 502 Bad Gateway
  • From: Nikolay Grebnev <nick@xxxxxxxxxxxx>
  • Date: Tue, 17 Mar 2009 16:21:30 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=yb2unCksTNaAKDGfoonT78IinIdrPjuZFEPQfGnof0Y=; b=UfvWbqpbjksmKDhCSQ+QOSl9bJtkK2HJCxiZhFK0vTXlX3Yv3ms8W4HxYznZXats4O Em3+frafKe9AsVIwC+iiOir2XjKGo61FbqrUq1DP4FNAYGz3w+5Uk7Tb1TmhBOON3U6q mJ+8Lf5BDXrbT2d+H4ndQuKAK0Snl5OstkUNE=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=qB66pvu/edUGzmGEFCnj2c3ZjqXhTfS1Lb5giuZozHfKRYBfEAttDxqL3wdlEue+TP OsVLxZ1HPbW1lXBW3TgWpjttMV+rQ5W71UKFnowOPJle3y2QIzcD4tdpxOkTX17uqKOH chNkUBiusDVv5jtULJdx8HUMKPOMPfKqf7JaY=
  • In-reply-to: <006a01c9a6fe$bf4abca0$b902a8c0@guffi>
  • References: <006a01c9a6fe$bf4abca0$b902a8c0@guffi>

÷ÁÍ ÎÁÄÏ ÓÍÏÔÒÅÔØ ÎÁ ÞÔÏ ÒÕÇÁÅÔÓÑ ÁÐÁÞ

2009/3/17 ÷ÑÞÅÓÌÁ× (óôYDéñ áòô-Déúáêî) <first@xxxxxxxxxx>

äÏÂÒÙÊ ÄÅÎØ, ÓÏÏÂÝÅÓÔ×Ï nginx-ru!

îÕÖÎÁ ×ÁÛÁ ÐÏÍÏÝØ.

Nginx 0.7.42 ËÁË ÆÒÏÎÔ-ÅÎÄ, apache2 ÂÅË-ÅÎÄ

š

õÓÔÁÎÏ×ÌÅÎÁ ÂÁÎÅÒÏ-ËÒÕÔÉÌËÁ openx ÎÁ ÄÏÍÅÎÅ adv.site.ru

âÁÎÅÒÙ ËÒÕÔÉÔ, Á × ÉÎÔÅÒÆÅÊÓ ÎÅ ÐÏÐÁÓÔØ, ÏÛÉÂËÁ - 502 Bad Gateway

š

÷ error.log

2009/03/17 14:41:28 [error] 21567#0: *1041029 upstream prematurely closed connection while reading response header from upstream, client: X.X.X.X, server: adv.site.ru, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "adv.site.ru"

š

õ apache ÄÏÂÁ×ÉÌ:

ListenBacklog 4096

š

óÅÊÞÁÓ ËÏÎÆÉÇ:

š server {

ššššššš listenššššššš 80;

ššššššš server_namešš adv.site.ru;

š

ššššššš location / {

ššššššššššš proxy_passšššššššš http://127.0.0.1:8080/;

ššššššššššš proxy_redirectšššš off;

š

ššššššššššš proxy_set_headeršš Hostššššš ššššššš$host;

ššššššššššš proxy_set_headeršš X-Real-IPššššššš $remote_addr;

ššššššššššš proxy_set_headerš X-Forwarded-Forš $proxy_add_x_forwarded_for;

š

ššššššššššš client_max_body_sizešššššš 10m;

ššššššššššš client_body_buffer_sizeššš 128k;

š

ššššššššššš proxy_connect_timeoutššššš 90;

ššššššššššš proxy_send_timeoutšššššššš 90;

ššššššššššš proxy_read_timeoutšššššššš 90;

š

ššššššššššš proxy_buffer_sizeššššššššš 32k;

ššššššššššš proxy_buffersššššššššššššš 4 32k;

ššššššššššš proxy_busy_buffers_size ššš64k;

ššššššššššš proxy_temp_file_write_size 64k;

ššššššš }

ššš }

š

ðÒÅÄÐÏÌÁÇÁÀ, ÞÔÏ ÇÄÅ-ÔÏ ×ÒÅÍÅÎÉ ÉÌÉ ÒÁÚÍÅÒÁ ÂÕÆÅÒÁ ËÁËÏÇÏ-ÎÉÂÕÄØ ÎÅ È×ÁÔÁÅÔ.

÷ÏÚÍÏÖÎÏ ËÔÏ-ÔÏ ÓÔÁÌËÉ×ÁÌÓÑ ÕÖÅ.

úÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÅÎ.

--

ó Õ×ÁÖÅÎÉÅÍ, ÷ÑÞÅÓÌÁך

š

š




 




Copyright © Lexa Software, 1996-2009.