Exclude ip's from Nginx limit_req zone

ASTRAPI nginx-forum at nginx.us
Sun Dec 21 12:17:18 UTC 2014


Yes it seems that it will help me :)

But on the code he is not using limit_conn_zone at all ....

My code:
    limit_req_zone  $binary_remote_addr zone=delta:8m rate=30r/s;
    limit_conn_zone $binary_remote_addr zone=alpha:8m;

New code:
    limit_req_zone $binary_remote_addr zone=notabot:5m rate=200r/s;
    limit_req zone=notabot burst=200 nodelay;

What is the difference?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255706#msg-255706

More information about the nginx mailing list