Welcome! Log In Create A New Profile

Advanced

Re: Any way to deal with clients breaking the limit zone

January 11, 2012 04:31PM
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
Subject Author Posted

Any way to deal with clients breaking the limit zone

karabaja June 01, 2011 10:52AM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin June 02, 2011 05:38AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 11, 2012 04:31PM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin January 12, 2012 11:12AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 13, 2012 01:55AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 13, 2012 01:57AM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin January 13, 2012 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready