Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

How to disable access_log to images but log 404s (2 replies)

$
0
0
hi,

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

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?

TIA

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>