Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.1.8

Ruslan Ermilov
November 28, 2011 02:22AM
On Fri, Nov 25, 2011 at 02:00:24PM +0400, Maxim Dounin wrote:
> Hello!
>
> On Fri, Nov 25, 2011 at 11:03:39AM +0800, Delta Yeh wrote:
>
> > 2011/11/14 Igor Sysoev <igor@sysoev.ru>:
> > > Changes with nginx 1.1.8                                         14 Nov 2011
> > >
> > >    *) Change: the ngx_http_limit_zone_module was renamed to the
> > >       ngx_http_limit_conn_module.
> > >
> > >    *) Change: the "limit_zone" directive was superseded by the
> > >       "limit_conn_zone" directive with a new syntax.
> > >
> > >    *) Feature: support for multiple "limit_conn" limits on the same level.
> > >
> >
> > Usually we use limit_zone module like:
> > http{
> >
> > limit_zone one $binary_remote_addr 10m;
> > server
> > {
> > location /mypage{
> > limit_conn one number_of connections;
> > }
> > }
> >
> > What is the scenario that we should use multiple limit_conn ?
>
> E.g. if you want to limit number of connections per ip *and* total
> number of connections per virtual host.
>
> limit_conn_zone $binary_remote_addr zone=perip:10m;
> limit_conn_zone $server_name zone=perserver:10m;
>
> server {
> ...
> limit_conn perip 10;
> limit_conn perserver 100;
> }
>
> > Is there a way to limit total connections to one location ?
>
> Yes.

I've just updated documentation with this particular example:

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx-1.1.8

Igor Sysoev November 14, 2011 10:46AM

Re: nginx-1.1.8

deltay November 24, 2011 10:06PM

Re: nginx-1.1.8

Maxim Dounin November 25, 2011 05:02AM

Re: nginx-1.1.8

deltay November 25, 2011 05:52AM

Re: nginx-1.1.8

Ruslan Ermilov November 28, 2011 02:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready