Discuz! Board
标题:
nginx访问频率限制
[打印本页]
作者:
zhoulei
时间:
2016-7-29 11:23
标题:
nginx访问频率限制
http段加入
map $http_x_forwarded_for $clientRealIp {
"" $remote_addr;
~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr;
}
limit_req_status 599;
limit_req_zone $clientRealIp zone=allips:70m rate=30r/s;
location段加入:
limit_req zone=allips burst=30 nodelay;
欢迎光临 Discuz! Board (http://123.59.83.120:8080/)
Powered by Discuz! X3.2