Avoid logging specific user agents requests

B.R. reallfqq-nginx at yahoo.fr
Sat Apr 11 11:18:54 UTC 2015


Hello,

Following: http://trac.nginx.org/nginx/ticket/713

How does one avoid logging (ie set 'access_log off') requests from specific
user agents?

Using 'if' would mean to use 'return' inside (as it is advised to do with
that directive, not continuing the normal process).
Using 'map', as shown in ticket #713, does not work as expected.

Thanks,
---
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150411/96e4a875/attachment.html>


More information about the nginx mailing list