Guest User

Nginx Config example for limiting download speed

a guest
Jul 24th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.47 KB | None | 0 0
  1. limit_conn_zone $binary_remote_addr zone=addr:10m;
  2. server {
  3.  
  4.         server_name dl.*******com;
  5.         server_tokens off;
  6.         listen 80 ;
  7.         root /var/www/dl.******.com/www;
  8.         location ~* / {
  9.         autoindex   off;
  10.         sendfile        on;
  11.         tcp_nopush  on;
  12.         tcp_nodelay     on;
  13.         keepalive_timeout   60;
  14.         limit_rate_after 50m;
  15.         limit_rate  256K;
  16.         limit_conn addr 8;
  17.                         }
  18.  
  19.  
  20.         }
Add Comment
Please, Sign In to add comment