You should use limit_conn
<http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn>
in conjunction with limit_req
<http://nginx.org/en/docs/http/ngx_http_limit_req_module.html#limit_req>.
They are supplementing each other.
---
*B. R.*
On Fri, Jan 8, 2016 at 8:52 PM, djeyewater <nginx-forum@forum.nginx.org>
wrote:
> itpp2012 Wrote:
> -------------------------------------------------------
> > No because one user (web browser) can easily open 20 or more
> > simultaneous connections to get a better web response.
> > A bot might be less prone to do the same but most connect at about 5
> > simultaneous connections.
>
>
> The limit_req will only be used for requests to dynamic pages, so there
> should only be one connection per user at a time.
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,263891,263907#msg-263907
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx