"limit_req_zone" unknown directive

Maxim Dounin mdounin at mdounin.ru
Fri Oct 29 14:55:29 MSD 2010


Hello!

On Fri, Oct 29, 2010 at 06:33:45AM -0400, TAiS46 wrote:

> i have added to my nginx.conf
> 
> http {
>  limit_req_zone $binary_remote_addr zone=antiddos:10m rate=10r/s;
> }
> 
> And in my site config
> 
> location ~ \.php$ {
>  #limit_req zone=antiddos burst=5;
> }
> 
> But i am only getting the error in the topic.
> Here my output of nginx -V

[...]

Most likely reason is that you've added limit_req_zone outside of
http{} block.  Please show full config.

Maxim Dounin



More information about the nginx mailing list