Mar 27, 2014

An interesting Nginx config

Limit the number of connections per the defined key. Example: key = IP address:
http {
    limit_conn_zone $binary_remote_addr zone=addr:10m;
}

server {
    location /download/ {
    limit_conn addr 1;
}
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html

No comments:

Post a Comment

New comment