| Syntax: | limit_rate rate |
| Default: | 0 |
| Context: | http server location if in location |
| Reference: | limit_rate |
Directive assigns the speed of transmission of the answer to client. Speed is assigned in the bytes per second. Limitation works only for one connection, i.e., if client opens 2 connections, then total velocity will be 2 times higher then the limit set.
If it is necessary to limit speed for the part of the clients at the server level, based on some kind of condition - then this directive does not apply. Instead you should specify the limit by assigning the value to the $limit_rate variable, as shown below:
You can also control the rate of individual responses returned by a proxy_pass response (HttpProxyModule) by setting the X-Accel-Limit-Rate header (XSendfile). This can be done without a X-Accel-Redirect header.