AMH4.2在CDN下使用limit_req2_nginx_module模块限制ip访问频率配置
将原来的这部分
limit_req2_zone $binary_remote_addr $request_uri zone=one:3m rate=2r/s;
limit_req2_zone $binary_remote_addr $uri zone=two:3m rate=20r/s;
limit_req2_zone $uri zone=three:3m rate=200r/s;
修改为map $http_x_forwarded_for $clientRealIp {
评论