Any way to deal with clients breaking the limit zone
    locojohn 
    nginx-forum at nginx.us
       
    Wed Jan 11 21:31:45 UTC 2012
    
    
  
Hello Maxim,
Sorry about highjacking this thread, but I think my question is
relevant.  In the nginx configuration I have:
        # limit simultaneous connections
        limit_conn_zone $binary_remote_addr zone=addr:1m;
        limit_conn addr 16;
But the error_log file says:
2012/01/11 21:41:39 [warn] 10140#0: *2959 limiting connections by zone
"addr", client: 127.0.0.1, server: , request: "GET / HTTP/1.0", host:
"mysite.com", referrer: "http://code.google.com/p/slowhttptest/"
2012/01/11 21:41:40 [warn] 10140#0: *2962 limiting connections by zone
"addr", client: 127.0.0.1, server: , request: "GET / HTTP/1.0", host:
"mysite.com", referrer: "http://code.google.com/p/slowhttptest/"
Question is, why 127.0.0.1 for the remote client address?  It should
have nothing to do with loopback host address.   It must be external
IP.
Any workaround?   Also, I noticed that "server:" is empty.   Any other
reason for that?   I have a dozen of virtual hosts configured with
fastcgi_pass to php-fpm.
Many thanks for your assistance.
nginx/1.1.12
Andrejs
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,203013,221055#msg-221055
    
    
More information about the nginx
mailing list