Welcome! Log In Create A New Profile

Advanced

Re: Limit_rate for different resolutions !!

Francis Daly
July 21, 2013 04:14PM
On Sun, Jul 21, 2013 at 02:29:26PM +0500, shahzaib shahzaib wrote:

Hi there,

> Well the rate_limit was 180K before for all the files because i added it
> into the server{} block and these location blocks were actually means the
> rate_limit 180k will apply to any flv,mp4,jpeg file and after adding -720
> before the location ~\.(mp4)$, the only 720p files will be served on
> limit_rate 500k and the rest would remain the same which is 180k in my case.

Good stuff -- each directive has a meaning, and if you wanted most
requests to have the 180 rate limit, then you put it in the right place.

Changing the "mp4" location to be "~ -720\.mp4$" means that those ones
will have the higher rate; but if you don't have a second location{}
for the other mp4s, they won't see the "mp4" directive, and so may not
be served correctly.

> I didn't used curl instead wget.

That's fine -- wget does a similar task to curl; and it's always good
to be able to demonstrate that the change you made fixed what was broken
(and didn't break what was already right).

Cheers,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Limit_rate for different resolutions !!

shahzaib1232 July 20, 2013 05:32AM

Re: Limit_rate for different resolutions !!

Francis Daly July 20, 2013 05:36AM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 20, 2013 05:48AM

Re: Limit_rate for different resolutions !!

Francis Daly July 20, 2013 06:00AM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 21, 2013 04:50AM

Re: Limit_rate for different resolutions !!

Francis Daly July 21, 2013 05:08AM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 21, 2013 05:26AM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 21, 2013 05:30AM

Re: Limit_rate for different resolutions !!

Francis Daly July 21, 2013 04:14PM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 22, 2013 12:30AM

Re: Limit_rate for different resolutions !!

Francis Daly July 22, 2013 03:30PM

Re: Limit_rate for different resolutions !!

shahzaib1232 July 23, 2013 01:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready