Limit_rate for different resolutions !!

Francis Daly francis at
Sun Jul 21 09:06:48 UTC 2013

On Sun, Jul 21, 2013 at 01:47:57PM +0500, shahzaib shahzaib wrote:

Hi there,

>      Following two are the file types whom i want to assign different
> rate_limits :
>  --->
> limit_rate 180k;
> -->
> limit_rate 500;

What rate limit do you want to apply to

What rate limit actually applies to it? And did you measure it? ("curl"
is usually a good tool to see what is really happening.)

>         location / {
> location ~ \.(flv|jpg|jpeg)$ {
> location ~ \.(mp4)$ {

What do your "location" lines up there mean?

For each request you make, what one location is used?

What happens if you add a

  location ~ -720\.mp4$ {}

block at the end? And what happens if you instead add it at the start?

Francis Daly        francis at

More information about the nginx mailing list