Opened 12 years ago

Closed 10 years ago

#121 closed enhancement (fixed)

limit_zone/conn: combined key

Reported by: Максим Щелоков Owned by: somebody
Priority: minor Milestone:
Component: nginx-module Version: 1.0.x
Keywords: Cc:
uname -a:
nginx -V: not applicable

Description

Хотелось бы предложить добавить гибкости в модули ограничения соединений/запросов, а именно комбинированный ключ, так, как это сейчас возможно в ключе для зоны кеширования.

Т.е. что-то наподобие limit_zone test "$binary_remote_addr|$server_name" 10m;

Change History (2)

comment:1 by Valentin Bartenev <vbart@…>, 10 years ago

In c9787372f16deeca108ca2cd6651a537027f451a/nginx:

Limit conn: use complex value in limit_conn_zone (ticket #121).

One intentional side effect of this change is that key is allowed only
in the first position. Previously, it was possible to specify the key
variable at any position, but that was never documented, and is contrary
to nginx configuration practice for positional parameters.

comment:2 by Valentin V. Bartenev, 10 years ago

Resolution: fixed
sensitive: 0
Status: newclosed

The feature will be part of nginx 1.7.6+.

Note: See TracTickets for help on using tickets.