Welcome! Log In Create A New Profile


limit_conn работает не на всех хостах

January 18, 2012 10:25AM

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х
Subject Author Posted

limit_conn работает не на всех хостах

колбаскин January 18, 2012 10:25AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 284
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready