Skip to content

Instantly share code, notes, and snippets.

@sergejmueller
Last active April 29, 2016 07:10
Show Gist options
  • Select an option

  • Save sergejmueller/8feabb2684a431db2f0c to your computer and use it in GitHub Desktop.

Select an option

Save sergejmueller/8feabb2684a431db2f0c to your computer and use it in GitHub Desktop.
NGINX: Keine WeMonit-Requests im Access Log
http {
...
include /etc/nginx/conf.d/wemonit.map;
...
}
server {
...
access_log /var/log/nginx/access.log if=$is_not_wemonit;
...
}
map $http_user_agent $is_not_wemonit {
default 1;
~wemonit 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment