Welcome! Log In Create A New Profile

Advanced

setting max connections

Posted by nicmo 
setting max connections
April 15, 2010 02:51PM
hello, i have some folders i wanted limited in terms of download speed, i achieved that with the following code but this only works in 1 connection. If the user uses a download manager and open up more connections then the download limit is multiplied by the number of connections open.

[code]
location ~* "^/files/[0-9]{1}/"
{
limit_rate 200k;
error_page 404 = @dynamic;
log_not_found off;
root /home/s1file/public_html;
expires 30d;
}

[/code]


what should i add to limit the users for 1 connection only, thank you.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready