In nginx.conf
limit_zone xxxxxx $binary_remote_addr 1M;
limit_req_zone $binary_remote_addr zone=xxxxxx_freq:1M
rate=30r/m;
In site definition
limit_conn xxxxxx 3;
limit_req zone=xxxxxx_freq burst=1 nodelay;
First connection usually gets a 503, subsequent ones work.
First connection usually refers to a dir without / final, then another
with / is requested, then dir/index.php.
Any help will be appreciated.
Thanks,
Gerardo
Posted at Nginx Forum: