limit_req_zone Documentation Wrong
Aidan Carson
aidan.kodi at gmail.com
Fri Jan 24 22:17:31 UTC 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200124/4f25e596/attachment.htm>
More information about the nginx-devel
mailing list