Welcome! Log In Create A New Profile

Advanced

setting connection limit and requets persecond on child location

Posted by boy9000 
setting connection limit and requets persecond on child location
May 26, 2020 03:02AM
This this is my config file

limit_conn_zone $binary_remote_addr zone=addr:10m;

server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www;
limit_conn addr 6;

server_name _;

location /Temp/ {
limit_conn addr 6;
limit_rate 2048k;
}
}


that mean all link on my location Temp is limit in 6 connection per second and 2megabityes/per request per second
but if i want to limit child folder in Temp (folder that i create in future like /Temp/ChildTemp1_20200525140220100...), how can i limit child folder to 2 request per child link and max is 1mbitye/request



Edited 1 time(s). Last edit at 05/26/2020 03:03AM by boy9000.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
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