Location problems

Igor Clark igor at pokelondon.com
Mon Mar 3 19:52:50 MSK 2008


Thanks Igor,

On 3 Mar 2008, at 14:15, Igor Sysoev wrote:

>> -  Using "error_page 404 @fallback" instead of "if (! -f " seems to
>> generate 404 errors in the log for every hit transferred to the
>> @fallback. Is that inevitable?
>
>       log_not_found  off;

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 ?

>> - Is there any way to use "fastcgi_intercept_errors on" with this  
>> setup?
>
> Yes. But you also need to add
>
>     location @fallback {
>
>         recursive_error_pages  on;
>
> to redirect it via error_page, because this is second error_page  
> redirection
> in request.


Perfect! Thanks.

Cheers,
Igor

--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749  
5355 // www.pokelondon.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080303/31c188f3/attachment.html>


More information about the nginx mailing list