How to apply concurrent connection limit?

Hello,

We have been providing API to our customers and want to apply concurrent
connection limit for API calls. Would anybody let us know which module
should be used with configuration example?

We also need to exclude (whitelist) some IPs from this connection limit
and
need to allow more connections.

Thanks,
Bhargav

http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html

Hello,

We have been providing API to our customers and want to apply concurrent
connection limit for API calls. Would anybody let us know which module
should be
used with configuration example?

We also need to exclude (whitelist) some IPs from this connection limit
and need to
allow more connections.

Thanks,
Bhargav

Hey thanks for quick reply.

As I mentioned in previous email, we also need to exclude some IPs from
this connection limit so would you provide some example of IP
whitelisting?

Thanks,

I am searching for the similar thing and can’t find anything…

Is it possible to handle all of this in nginx? ( Seting/evaluating
headers,
limiting connection, IP whitelisting ) ?

I want to throttle access to our API and send extra headers, based on
the
limit say 100 req / minute for 1 IP you would get a 429 HTTP error code
(
Too many requests ) and extra header X-RateLimit-Reset: would state how
much
time left until limit will expire.

Posted at Nginx Forum:

Hello a quick question, ( I’m a newbie in this forum and in Nginx )

is there a way for nginx to limit connections per workstation? lets say
I
allow only 5 workstations at a time to connect among 20 workstations, is
that possible?

Posted at Nginx Forum:

On Tue, Mar 24, 2015 at 08:53:34AM +0530, Makailol C. wrote:

Hi there,

As I mentioned in previous email, we also need to exclude some IPs from
this connection limit so would you provide some example of IP whitelisting?

http://mailman.nginx.org/pipermail/nginx/2012-July/034790.html

linked from last December’s

http://mailman.nginx.org/pipermail/nginx/2014-December/046207.html

There is a bit more background in each thread there.

f

Francis D. [email protected]