Home > Backend Development > PHP Tutorial > How to limit bandwidth in nginx nginx apache nginx php nginx rewrite

How to limit bandwidth in nginx nginx apache nginx php nginx rewrite

WBOY
Release: 2016-07-29 08:52:33
Original
1289 people have browsed it
For example, I have a file storage server here, and the bandwidth is often unable to keep up. Some configurations can be made to the server to reduce bandwidth pressure. For the company, it means cost savings. I searched for nginx configuration for bandwidth operation.

Nginx provides limit_rate and limit_rate_after For details, please check the nginx configuration introduction

location /download/ { 
limit_rate_after 500k;
limit_rate 50k; 
}
Copy after login

The above configuration means. After the user's download reaches 500k, the speed is controlled within 50k. In this way, the server bandwidth is reduced.

The above introduces how nginx limits bandwidth, including nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template