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.
Ebaec6082a410480ed9201d9a991251e?d=identicon&s=25 Do Good (leojoesdb)
on 2009-02-11 12:57
Hi,

Can I limit particular IP or Domain using limit_zone?
Can anybody give me an example.
Ebaec6082a410480ed9201d9a991251e?d=identicon&s=25 Do Good (leojoesdb)
on 2009-02-11 12:58
Do Good wrote:
> Hi,
>
> Can I limit particular IP or Domain using limit_zone in nginx?
> Can anybody give me an example.
D4fdbe62b825c010adf04da0f72571e9?d=identicon&s=25 Andrius Semionovas (Guest)
on 2009-02-11 14:17
(Received via mailing list)
sure:

  limit_zone   one  $binary_remote_addr  10m;
  limit_conn   one 7;

you need put this in http section.
Ebaec6082a410480ed9201d9a991251e?d=identicon&s=25 Do Good (leojoesdb)
on 2009-02-12 09: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
A8108a0961c6087c43cda32c8616dcba?d=identicon&s=25 Maxim Dounin (Guest)
on 2009-02-12 10: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 Dounin
D4fdbe62b825c010adf04da0f72571e9?d=identicon&s=25 Andrius Semionovas (Guest)
on 2009-02-12 13: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.