How to disable access_log to images but log 404s

Igal @ igal at
Thu Oct 30 13:56:27 UTC 2014


I am suppressing the access_log for images and other files in the /res/

     location ^~ /res/ {

        error_page  404  /res/images/100candles-logo-square.png;
        expires     14d;
        access_log  off;

but I would like to log the 404s in the access_log

how can I do that?


More information about the nginx mailing list