How to limit per virtual host and per client connection number at the same time?

JWD j-wd at tom.com
Wed Oct 27 08:08:20 MSD 2010


How to limit per virtual host and per client connection number at the same time, like this:
    limit_zone server_conn $server_name 10m;
    limit_conn server_conn 100;
    limit_zone client_conn $binary_remote_addr 10m;
    limit_conn client_conn 20;
This is invalide in nginx config, how to make it work?





More information about the nginx mailing list