i cant use limit_conn_zone

Maxim Dounin mdounin at mdounin.ru
Wed Jul 9 02:04:04 UTC 2014


Hello!

On Tue, Jul 08, 2014 at 09:56:52PM -0400, farukest wrote:

> Thank you i did what you said and it is working good. does this process slow
> down the website ? If it does, what should i do for as an alternative speed.
> Any idea ?

You may want to actually read the link provided.  It explains how 
to configure limit_conn, what it does and what will be the 
expected result.  Quoting most relevant part of the limit_conn 
directive docs (http://nginx.org/r/limit_conn):

: Sets the shared memory zone and the maximum allowed number of 
: connections for a given key value. When this limit is exceeded, 
: the server will return the 503 (Service Temporarily Unavailable) 
: error in reply to a request. For example, the directives
: 
: limit_conn_zone $binary_remote_addr zone=addr:10m;
: 
: server {
:     location /download/ {
:         limit_conn addr 1;
:     }
: 
: allow only one connection per an IP address at a time.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list