<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Igor,<div><br><div><div>On 3 Mar 2008, at 14:15, Igor Sysoev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite">- &nbsp;Using "error_page 404 @fallback" instead of "if (! -f " seems to &nbsp;<br></blockquote><blockquote type="cite">generate 404 errors in the log for every hit transferred to the &nbsp;<br></blockquote><blockquote type="cite">@fallback. Is that inevitable?<br></blockquote><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log_not_found &nbsp;off;</blockquote><div><br class="webkit-block-placeholder"></div><div>If no 404s are recorded at all there's no way to tell if (for example) someone has a remote broken link, someone is trying particular URLs for vulnerabilities, etc. Is it possible to log only 404s which get 404 codes back from the PHP app via @fallback ?</div><font class="Apple-style-span" color="#000000"><br class="webkit-block-placeholder"></font><blockquote type="cite"><blockquote type="cite">- Is there any way to use "fastcgi_intercept_errors on" with this setup?<br></blockquote><br>Yes. But you also need to add<br><br> &nbsp;&nbsp;&nbsp;&nbsp;location @fallback {<br><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recursive_error_pages &nbsp;on;<br><br>to redirect it via error_page, because this is second error_page redirection<br>in request.<br></blockquote></div><div><br class="webkit-block-placeholder"></div><div>Perfect! Thanks.</div><div><br class="webkit-block-placeholder"></div><div>Cheers,</div><div>Igor</div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749 5355 // <a href="http://www.pokelondon.com">www.pokelondon.com</a></div><div><br></div></div></div></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>