Hello,
We have load balancers that are doing port checks on our NGINX servers.
Each of these checks creates an entry in our log file like this:
10.0.0.58 - - [22/Feb/2010:18:50:21 +0900] "-" 400 0 "-" "-" 0.000 "-"
"-" "-" [-] - - - [-] [-]
Does anyone have an idea of how I can stop logging these requests?
I have tried
location / {
if ($remote_addr ~* 10\.0\.0.\.i.+) {
access_log off;
}
}
But this does not work. I have also tried putting the if and access_log
check in the http directive. But access_log commands are not allowed
there. So we might want to update the context docs here.
http://wiki.nginx.org/NginxHttpLogModule
Also, I am using Nginx 0.7.65
Thanks,
Zev
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx