whitelist 'notabot' not working in limit_conn
Alex Flex
aflexzor at gmail.com
Sun Aug 3 19:28:45 UTC 2014
Iam trying to whitelist some IPs in the geo #connlimit1 so that the
limit_conn doesnt apply to it. For some reason its not working... those
ips are always being limited. I must be doing something obviously wrong
guidance appreciated.
Alex
server {
geo $connlimit1 {
default 1;
#whitelist client
21.199.62.74/32 0;
5.97.162.77/32 0;
}
limit_conn_zone $binary_remote_addr zone=connlimit1:10m;
}
http {
location / { limit_conn connlimit1 8; ....; }
}
More information about the nginx
mailing list