nginx 限速配置

六月 24th, 2010 hew Posted in nginx | No Comments »

在nginx.conf的http{}添加
limit_zone one $binary_remote_addr 10m;

然后在虚拟机里写
location / {
limit_conn one 1; 线程
limit_rate 100k; 速度
}


表示限速100K 每个客户端只允许一个线程

最终速度=rate * conn

Tags: ,

与本文关系暧昧的


Leave a Reply