Nginx fastcgi_intercept_errors

Oleg V. Khrustov oleg.khrustov at gmail.com
Fri Nov 29 11:36:18 UTC 2013


nginx/1.5.4 doesnt intercept fastcgi errors.
location / {
....
fastcgi_pass bg;
                error_page 500 502 503 504 408 404 =204 /204.htm;
                fastcgi_intercept_errors on;

.....
}

However in root location access log we still see

91.192.148.232 - - [29/Nov/2013:13:39:20 +0400] "POST / HTTP/1.1" 504 182
"-" "-" "0.138"

And tcpdump capture shows that we still send 504:

Py...HTTP/1.1 504 Gateway Time-out
Server: nginx/1.5.4
Date: Fri, 29 Nov 2013 09:42:12 GMT
Content-Type: text/html
Content-Length: 182
Connection: keep-alive

<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.5.4</center>
</body>
</html>


What can be wrong here?

Thanks,
OK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20131129/7bab980e/attachment-0001.html>


More information about the nginx mailing list