Limit zone nor working

limit_conn_zone $remote_user zone=peruser:10m;

limit_conn peruser 1 ;

Not working why?

Thank you

Posted at Nginx Forum:

Hello!

On Fri, Jun 22, 2012 at 04:59:11PM -0400, thecrow wrote:

limit_conn_zone $remote_user zone=peruser:10m;

limit_conn peruser 1 ;

Not working why?

Most likely because $remote_user evaluates to an empty string and
hence it’s ignored.

See here for details:
http://nginx.org/r/limit_conn_zone

Maxim D.