I am using haproxy and nginx. Haproxy has sthis option to check health of my backends:
option httpchk HEAD /lol.txt HTTP/1.0
All works fine, but I do not want to log this health check
So in my nginx configuration I add:
location /lol.txt {
access_log off;
}
The problem is, this location returns a 301, so I got these logs again and again:
10.1.29.1 - - [15/Mar/2013:06:51:36 +0100] "HEAD /lol.txt HTTP/1.0" 301 0 "-" "-"
Have you some idea to have the access_log off working?
Regards.