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

Avoid logging specific user agents requests (2 replies)

$
0
0
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.*
_______________________________________________
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>