multiple limit_conn

Alex Vorona voron at amhost.net
Thu Feb 19 10:20:00 MSK 2009


Привет,

Использую следующую конструкцию в контексте http.

     limit_zone  src_ip  $binary_remote_addr     1m;
     limit_zone  dst_ip  $server_addr            1m;
     limit_zone  vhost   $server_name            1m;
     limit_conn  src_ip  50;
     limit_conn  dst_ip  100;
     limit_conn  vhost   60;

При попытке обновить nginx с 0.7.22 до 0.7.35 получаю
2009/02/19 02:12:53 [emerg] 89100#0: "limit_conn" directive is duplicate in 
/usr/local/etc/nginx/nginx.conf:92
2009/02/19 02:12:53 [emerg] 89100#0: the configuration file /usr/local/etc/nginx/nginx.conf test failed

92-я строчка
     limit_conn  dst_ip  100;

limit_conn можно применять только 1 раз, даже с разными зонами?





More information about the nginx-ru mailing list