Welcome! Log In Create A New Profile


Re: limit_req_zone Documentation Wrong

Yaroslav Zhuravlev
February 20, 2020 11:06AM
Hello Aidan,

> On 24 Jan 2020, at 22:17, Aidan Carson <aidan.kodi@gmail.com> wrote:
> Hello,
> I believe the documentation for the limit_req_zone directive on this page is wrong:
> http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
> It says that a rate parameter is not optional, but it is. The directive requires at least three parameters, but
> limit_req_zone $binary_remote_addr zone=limit:64k sync;
> or
> limit_req_zone $binary_remote_addr zone=limit:64k zone=limit:64k;
> are valid, omitting the rate. I see in the code that the default is 1r/s. Perhaps updating the documentation to list the default would be good, or changing the code to have the rate be required.
> Thank you,
> Aidan Carson

Thank you for your feedback on the docs. The “rate” parameter is assumed to be obligatory, though the syntax (http://nginx.org/r/limit_req_zone) may be constructed in a way to make it optional. For a common use case, the current behaviour is considered correct here, so the documentation would also be correct. I wouldn’t expect much changes here but let’s leave the latter to developers.

Best regards,

nginx-devel mailing list
Subject Author Views Posted

limit_req_zone Documentation Wrong

Aidan Carson 202 January 24, 2020 05:20PM

Re: limit_req_zone Documentation Wrong

Yaroslav Zhuravlev 29 February 20, 2020 11:06AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready