Forum: NGINX limit_zone in nginx

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Do G. (Guest)
on 2009-02-11 13:57
Hi,

Can I limit particular IP or Domain using limit_zone?
Can anybody give me an example.
Do G. (Guest)
on 2009-02-11 13:58
Do Good wrote:
> Hi,
>
> Can I limit particular IP or Domain using limit_zone in nginx?
> Can anybody give me an example.
Andrius Semionovas (Guest)
on 2009-02-11 15:17
(Received via mailing list)
sure:

  limit_zone   one  $binary_remote_addr  10m;
  limit_conn   one 7;

you need put this in http section.
Do G. (Guest)
on 2009-02-12 10:35
Andrius Semionovas wrote:
> sure:
>
>   limit_zone   one  $binary_remote_addr  10m;
>   limit_conn   one 7;
>
> you need put this in http section.

Can you explain this ¨one¨  ¨10¨  ¨7¨in detail like
Maxim D. (Guest)
on 2009-02-12 11:17
(Received via mailing list)
Hello!

On Thu, Feb 12, 2009 at 09:35:39AM +0100, Do Good wrote:

> Andrius Semionovas wrote:
> > sure:
> >
> >   limit_zone   one  $binary_remote_addr  10m;
> >   limit_conn   one 7;
> >
> > you need put this in http section.
>
> Can you explain this ¨one¨  ¨10¨  ¨7¨in detail like

http://wiki.codemongers.com/NginxHttpLimitZoneModule

Maxim D.
Andrius Semionovas (Guest)
on 2009-02-12 14:16
(Received via mailing list)
"one" is zone name.

limit_zone   one  $binary_remote_addr  10m;

i create limit_zone named "one". limit_zone check by
$binary_remote_addr.
what is 10m, i not know

limit_conn   one 7;

This say limit_zone named "one", accept only 7 connections at moment.
This topic is locked and can not be replied to.