Location problems

Igor Sysoev is at rambler-co.ru
Mon Mar 3 20:50:16 MSK 2008

On Mon, Mar 03, 2008 at 05:44:02PM +0000, Igor Clark wrote:

> On 3 Mar 2008, at 16:55, Igor Sysoev wrote:
> >>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 ?
> >
> >In access_log only.
> Ah, yes, of course!
> However I seem to still get the 404s (e.g. request for "/transcripts/ 
> view/theme/parttime-work/" gives 404 "/transcripts/view/theme/parttime- 
> work/index.html is not found") recorded in error_log, even when  
> "log_not_found off" is in main "server" context or in any "location"  
> context.

In this case you should get 403 error:
"directory index of "..." is forbidden".

I will probably create "log_forbidden on|off".

Igor Sysoev

More information about the nginx mailing list