According to the doc: <a href="http://wiki.nginx.org/HttpFastcgiModule#fastcgi_intercept_errors">http://wiki.nginx.org/HttpFastcgiModule#fastcgi_intercept_errors</a><div><br></div><div><span style="color:rgb(85,85,85);font-family:'Lucida Grande','Lucida Sans Unicode','Lucida Sans',Arial,Verdana,sans-serif;font-size:14px;line-height:17.266666412353516px;background-color:rgb(240,240,240)">Note: You need to explicitly define the error_page handler for this for it to be useful. As Igor says, "nginx does not intercept an error if there is no custom handler for it it does not show its default pages. This allows to intercept some errors, while passing others as are."</span></div>
<div><span style="color:rgb(85,85,85);font-family:'Lucida Grande','Lucida Sans Unicode','Lucida Sans',Arial,Verdana,sans-serif;font-size:14px;line-height:17.266666412353516px;background-color:rgb(240,240,240)"><br>
</span></div><div>Actually I still can't understand the exact meaning, so I have done some experimentd.</div><div><br></div><div>1. turn on fastcgi_intercept_errors,</div><div>    - in the backend php/fcgi send 404 header,</div>
<div>    - set the error_page (php)</div><div><br></div><div>Result: nginx use the default error template</div><div><br></div><div>2. turn off fastcgi_intercept_errors, </div><div>    - in the backend php/fcgi send 404 header</div>
<div><div>    - set the error_page (php)</div></div><div><br></div><div>Result: now the custom error_page (php) is being used.</div><div><br></div><div>So it seems to me that<b> fastcgi_intercept_errors should be off and set the error_page </b>if I need to specify custom error handler, is this interoperation correct?</div>
<div><br></div><div><br></div><div>Thanks.</div><div><br></div>