<div dir="ltr"><div><div>What rate limit actually applies to it? And did you measure it? ("curl"<br>
is usually a good tool to see what is really happening.)<br>
<br>
> location / {<br>
<div class="im">> location ~ \.(flv|jpg|jpeg)$ {<br>
</div>> location ~ \.(mp4)$ {<br><br></div>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.<br>
<br></div>I didn't used curl instead wget.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 21, 2013 at 2:24 PM, shahzaib shahzaib <span dir="ltr"><<a href="mailto:shahzaib.cb@gmail.com" target="_blank">shahzaib.cb@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div> I added the 720p in the location{} and checked it by downloading the single file using wget and got the 500K speed :). <br>
<br>location ~ -720\.(mp4)$ {<br> mp4;<br>
expires 7d;<br> limit_rate 500k;<br> root /var/www/html/tunefiles;<br>}<br></div>That worked :). Thanks a lot @francis.<br></div>
</blockquote></div><br></div>