Limit_rate for different resolutions !!
Francis Daly
francis at daoine.org
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 :
>
> http://domain.com/files/videos/2013/07/20/137430161313bb6-360.mp4 --->
> limit_rate 180k;
> http://domain.com/files/videos/2013/07/20/137430161313bb6-720.mp4 -->
> limit_rate 500;
What rate limit do you want to apply to http://domain.com/file.flv?
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)$ {
http://nginx.org/r/location
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?
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list