<div dir="ltr"><div><div><div><div><div>Hi nginx team,<br><br></div>I am getting 502 bad gateway error for particular URL.<br><br></div>Application details :<br>
Rails 3.1.0<br>
Ruby 1.9.2<br>
unicorn 4.2.0<br>
resque 1.20.0<br>
nginx/1.0.14<br>
redis 2.4.8<br><br></div>nginx error log :<code><span><br>2013</span><span>/</span><span>02</span><span>/</span><span>12</span><span> </span><span>07</span><span>:</span><span>36</span><span>:</span><span>16</span><span> </span><span>[</span><span>error</span><span>]</span><span> </span><span>32401</span><span>#0: *1948 upstream prematurely closed connection while reading response header from upstream</span></code><br>


<br></div><div>I have also posted my question on stack-overflow, please find it <a href="http://stackoverflow.com/questions/14825304/502-error-nginx-ruby-on-rails-application" target="_blank">here</a>, but couldn't got any response.<br>


</div><div><br></div>Please guide me to solve this problem.<br><br></div>Thanks<div><div><div><div><div><div><div><div dir="ltr">Regards:<br>Raghvendra Kumar Parashar<br><br><br></div></div>
</div></div></div></div></div></div></div>