<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div> Following two are the file types whom i want to assign different rate_limits :<br><br></div><a href="http://domain.com/files/videos/2013/07/20/137430161313bb6-360.mp4">http://domain.com/files/videos/2013/07/20/137430161313bb6-360.mp4</a> ---> limit_rate 180k;<br>
<a href="http://domain.com/files/videos/2013/07/20/137430161313bb6-720.mp4">http://domain.com/files/videos/2013/07/20/137430161313bb6-720.mp4</a> --> limit_rate 500;<br><br></div>Following is the virtualhost config :<br>
<br><br>server {<br> listen 80;<br> server_name <a href="http://domain.com">domain.com</a>;<br><br> client_max_body_size 800m;<br> limit_rate 180k;<br> # access_log /websites/<a href="http://theos.in/logs/access.log">theos.in/logs/access.log</a> main;<br>
<br> location / {<br> root /var/www/html/videos;<br> index index.html index.htm index.php;<br><br>}<br><br>location ~ \.(flv|jpg|jpeg)$ {<br> flv;<br> root /var/www/html/videos;<br>
expires 7d;<br> valid_referers none blocked <a href="http://domain.com">domain.com</a>;<br> if ($invalid_referer) {<br> return 403;<br> }<br>
}<br>location ~ \.(mp4)$ {<br> mp4;<br> root /var/www/html/videos;<br> expires 7d;<br>}<br><br></div>Can you please guide me a bit that how to configure the specific limit_rate in different location{} blocks? I am a bit confused on it :(<br>
<br></div>Thanks<br> </div>