Hello,
I would take a look at this module:
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
Official modules are available through the pre-compiled official binaries,
you won't need to do that by hand.
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx