Welcome! Log In Create A New Profile

Advanced

limit connection based on Host header

Frank Liu
February 08, 2017 09:02AM
Hi,

I have a default "server" block with "server_name _ ;". Since connections
coming in may have different Host header, I am trying to limit the
connection based on Host header.

limit_conn_zone $server_name zone=perserver:10m;

limit_conn perserver 10;

Will this work?
It seems if the connection for one Host reaches 10, I see errors "limiting
connections by zone "perserver" for connections with other Host as well.
Did I miss anything?

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

limit connection based on Host header

Frank Liu February 08, 2017 09:02AM

Re: limit connection based on Host header

Francis Daly February 04, 2017 08:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
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