tengine 1.4.2 whitelist problem

njthzxwz  于 2022-12-31  发布在  其他
关注(0)|答案(2)|浏览(132)

limit_req_whitelist bug
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=2r/s;
geo $white_ip {
ranges;
default 0;
58.166.39.182-58.166.39.184 1;
58.112.221.179-58.112.221.190 1;
121.130.163.153-121.130.163.154 1;
}
limit_req_whitelist geo_var_name=white_ip geo_var_value=1;
limit_req_zone $binary_remote_addr zone=white_ip:100m rate=2r/s;
include /usr/local/webserver/nginx/conf/vhosts/*.conf;
}

location ~*^/(home|IndexAction.class|message_check|index).php$ {
root /htdoc/hao123/xk.hao123.com/;
limit_conn conn_limit_per_ip 3;
limit_req zone=white_ip burst=4 nodelay;
limit_req_whitelist geo_var_name=white_ip geo_var_value=1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}

58.166.39.182-58.166.39.184 this whitelist ip request http://xk.hao123.com/ limit ,bug,help

c6ubokkw

c6ubokkw1#

58.166.39.182-58.166.39.184 这个白名单的ip去访问 http://xk.hao123.com/ 里面的文件为何还会受到limit的限制,求助.

hgncfbus

hgncfbus2#

可以把debug日志打开看下吗?看看limit_req对应的日志。

相关问题