How to limit the response rate of nginx

Refer to the official address: http://nginx.org/en/docs/http/ngx_http_core_module.html#variables

  

  $ Limit_rate built with variable can limit the response speed of nginx.

  Such as restrictions on the contents of 1kb per second nginx response to the client. It can be set as follows:

 

 

 

The effect of the following, you can see the corresponding content to the browser size of 1kb per second.

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/Tao9/p/11960510.html