ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

limit conn работает не на всех хостах


  • To: nginx-ru@xxxxxxxxx
  • Subject: limit conn работает не на всех хостах
  • From: "колбаскин" <nginx-forum@xxxxxxxx>
  • Date: Wed, 18 Jan 2012 10:25:11 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=eC23hTjB2Bu9jTc8f9DVpl5t7mAquNR3bzpCKVQf2q0=; b=hCXYHrx48egrGcQ3F2+5fTs96TmZRy5wIZu+FOVeVr/zrq2At2cMFOYWan8fze5RWtHojNmo795ElVdbcYIxy2J+agZDBqHAkLJOXU4TxFcKOJWdiDDUNbkDVL7+3iyz;

nginx.conf

        limit_zone  conn_from_one_ip $binary_remote_addr 16m;
        limit_req_zone  $binary_remote_addr  zone=lreq:20m   rate=2r/s;
        proxy_cache_path /usr/local/etc/nginx/cache levels=1:2
keys_zone=one:16$
        proxy_temp_path /usr/local/etc/nginx/temp;

...

    include sites/* ;
}

server {
 listen       80;
 server_name  site1 ip1;
 proxy_temp_path /usr/local/etc/nginx/site1;
 limit_conn conn_from_one_ip 49;

server {
 listen       80;
 server_name  site2 ip3;
 proxy_temp_path /usr/local/etc/nginx/site2;
 limit_conn conn_from_one_ip 49;

И вот так из 6ти хостов, работает только
на 3х

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,221395,221395#msg-221395

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.