Okay, I&#39;ll change it back.<br><br>What should I set my log level to to determine which type of error it is?<br><br>J.<br><br><div class="gmail_quote">On Mon, Mar 10, 2008 at 9:49 AM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Mon, Mar 10, 2008 at 09:12:35AM -0400, James Golick wrote:<br>

<br>
&gt; I have nginx running as a proxy to about twelve upstream app servers,<br>
&gt; serving a rails app. Nothing else really in this configuration.<br>
&gt;<br>
&gt; I am seeing about 10% of requests throwing 500 errors, and this in my error<br>
&gt; log:<br>
&gt;<br>
&gt; 2008/03/10 08:41:05 [info] 6632#0: *12005 client closed prematurely<br>
&gt; connection while sending response to client, client: xxx, server: xxx,<br>
&gt; request: xxx, host: xxx, referrer: xxx<br>
&gt;<br>
&gt; I&#39;m also seeing lots of:<br>
&gt;<br>
&gt; client xxx closed keepalive connection<br>
&gt;<br>
&gt; but that strikes me as normal, and I&#39;m seeing:<br>
&gt;<br>
&gt; client closed prematurely connection while reading client request line,<br>
&gt; client: xxx, server: xxx<br>
&gt;<br>
&gt; I have googled far and wide, and the best answers I came up with were to add<br>
&gt; these lines to my conf:<br>
&gt;<br>
&gt; proxy_ignore_client_abort &nbsp;on;<br>
&gt; proxy_next_upstream error;<br>
<br>
</div></div>The default<br>
<br>
proxy_next_upstream error timeout invalid_header;<br>
<br>
is better.<br>
<div class="Ih2E3d"><br>
&gt; but, that doesn&#39;t seem to have solved the problem.<br>
&gt;<br>
&gt; Any ideas?<br>
<br>
</div>Do you see 500, 502, or 504 errors ? They are very different things.<br>
Any messages logged at info level is not caused by 50X error.<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br>