Conditional logging

Hello,

My app has lots of image files, and client requests for these images are
bloating up the access log a lot.

I was wondering if there is a way to log conditionally; for example, if
there is a request for an image file and it is processed with code 200,
don’t bother logging it.

Is this possible?

Thanks

Posted at Nginx Forum:

Look here [1] for the line location ~* ^.+.(jpg|jpeg|gif)$ {
and here [2]

[1] http://wiki.nginx.org/FullExample2
[2] Module ngx_http_core_module

Am 2011-07-13 00:30, schrieb Mushin: