how to set expection when using limit_conn?
coolforce127
nginx-forum at nginx.us
Fri Jan 7 03:41:19 MSK 2011
i want to use limit_conn to let all remote address user maximum 1
connection. I also want to let list of private port have unlimit
connection. how do i do that?
here is my sample conf:
[code]
limit_zone remote_addr $binary_remote_addr 10m;
location / {
listen 80;
server_name download.example.com;
root /var/www/html1/;
# limit connection
limit_conn remote_addr 2;
limit_rate 10k;
}
[/code]
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,164243,164243#msg-164243
More information about the nginx
mailing list