Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

setting connection limit and requets persecond on child location

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>