how to set expection when using limit_conn?

coolforce127 nginx-forum at
Fri Jan 7 03:41:19 MSK 2011

i want to use limit_conn to let all remote address user maximum 1
connection. I also want to let list of private port have unlimit
connection. how do i do that?

here is my sample conf:
      limit_zone		remote_addr		$binary_remote_addr		10m;
     location / {
       listen       80;

       root  /var/www/html1/;

		# limit connection
		limit_conn		remote_addr		2;
		limit_rate		10k;

Posted at Nginx Forum:,164243,164243#msg-164243

More information about the nginx mailing list