nginx-1.1.8

8 views
Skip to first unread message

Igor Sysoev

unread,
Nov 14, 2011, 10:44:03 AM11/14/11
to ng...@nginx.org
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.

*) Feature: the "image_filter_sharpen" directive.

*) Bugfix: a segmentation fault might occur in a worker process if
resolver got a big DNS response.
Thanks to Ben Hawkes.

*) Bugfix: in cache key calculation if internal MD5 implementation was
used; the bug had appeared in 1.0.4.

*) Bugfix: the "If-Modified-Since", "If-Range", etc. client request
header lines might be passed to backend while caching; or not passed
without caching if caching was enabled in another part of the
configuration.

*) Bugfix: the module ngx_http_mp4_module sent incorrect
"Content-Length" response header line if the "start" argument was
used.
Thanks to Piotr Sikora.


--
Igor Sysoev

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Delta Yeh

unread,
Nov 24, 2011, 10:03:39 PM11/24/11
to ng...@nginx.org
2011/11/14 Igor Sysoev <ig...@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 ?

Is there a way to limit total connections to one location ?

Maxim Dounin

unread,
Nov 25, 2011, 5:00:24 AM11/25/11
to ng...@nginx.org
Hello!

On Fri, Nov 25, 2011 at 11:03:39AM +0800, Delta Yeh wrote:

> 2011/11/14 Igor Sysoev <ig...@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.

Maxim Dounin

Delta Yeh

unread,
Nov 25, 2011, 5:50:25 AM11/25/11
to ng...@nginx.org
So if I want to limit total connection to one uri, I can do it by:


limit_conn_zone $host$uri zone=peruri:10m;


server {
...
location / {
limit_conn peruri 10;
}

}


but because uri is

2011/11/25 Maxim Dounin <mdo...@mdounin.ru>:

Ruslan Ermilov

unread,
Nov 28, 2011, 2:27:12 AM11/28/11
to ng...@nginx.org

I've just updated documentation with this particular example:

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

Reply all
Reply to author
Forward
0 new messages