<div dir="ltr"><div>1) /etc/init.d/nginx configtest</div><div>nginx: the configuration file /etc/nginx/nginx.conf syntax is ok</div><div>nginx: configuration file /etc/nginx/nginx.conf test is successful</div><div><br></div>
<div>It was definitely reloaded prior doing any tests.</div><div><br></div><div><br></div><div>2) I have a separate access log file for this  specific (root) location with custon log format where I captured 504 response.  It is set only for root location where I captured unexpected response code.</div>
<div><br></div><div><br></div><div>Thanks,</div><div>OK</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 4:59 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
On Fri, Nov 29, 2013 at 03:36:18PM +0400, Oleg V. Khrustov wrote:<br>
<br>
> nginx/1.5.4 doesnt intercept fastcgi errors.<br>
> location / {<br>
> ....<br>
> fastcgi_pass bg;<br>
>                 error_page 500 502 503 504 408 404 =204 /204.htm;<br>
>                 fastcgi_intercept_errors on;<br>
><br>
> .....<br>
> }<br>
><br>
> However in root location access log we still see<br>
><br>
> 91.192.148.232 - - [29/Nov/2013:13:39:20 +0400] "POST / HTTP/1.1" 504 182<br>
> "-" "-" "0.138"<br>
><br>
> And tcpdump capture shows that we still send 504:<br>
><br>
> Py...HTTP/1.1 504 Gateway Time-out<br>
> Server: nginx/1.5.4<br>
<br>
[...]<br>
<br>
> What can be wrong here?<br>
<br>
Most likely reasons, in no particular order:<br>
<br>
- You've forgot to reload configuration, or the configuration was<br>
  rejected due to errors and you've missed it.<br>
<br>
- The request is handled in other location and/or server, not<br>
  the one you are looking at.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/en/donation.html" target="_blank">http://nginx.org/en/donation.html</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>