T
T
TechNOIR2018-11-06 11:39:07
Nginx
TechNOIR, 2018-11-06 11:39:07

nginx. How to properly limit upload speed?

Good afternoon.
How to properly limit upload speed?
/var/www/ contains several hosts from which clients download constantly.
You just need to limit the upload speed without listing all the hosts in the location. It is possible at the server level.
So?

server {
limit_rate 512k;
}

Or so?
http {
limit_rate 512k;
}

thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lubezniy, 2018-11-06
@lubezniy

If you need to restrict throughout nginx, then in http. If for some servers, then in server. If by some paths, then in location.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question