<div dir="ltr"><div>Going with the same configuration as far as they are working for me. <br><br></div>Thanks again Francis :)<br><br>Best Regards.<br>Shahzaib<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 23, 2013 at 12:28 AM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jul 22, 2013 at 09:27:59AM +0500, shahzaib shahzaib wrote:<br>
<br>
Hi there,<br>
<br>
</div><div class="im">> location ~ -720\.(mp4)$ {<br>
> mp4;<br>
> expires 7d;<br>
> limit_rate 500k;<br>
> root /var/www/html/videos;<br>
> valid_referers none blocked <a href="http://domain.com" target="_blank">domain.com</a>;<br>
> if ($invalid_referer) {<br>
> return 403;<br>
> }<br>
> }<br>
> location ~ -480\.(mp4)$ {<br>
> mp4;<br>
> expires 7d;<br>
> limit_rate 250k;<br>
> root /var/www/html/videos;<br>
> valid_referers none blocked <a href="http://domain.com" target="_blank">domain.com</a>;<br>
> if ($invalid_referer) {<br>
> return 403;<br>
> }<br>
> }<br>
> location ~ \.(mp4)$ {<br>
> mp4;<br>
> expires 7d;<br>
> root /var/www/html/videos;<br>
> valid_referers none blocked <a href="http://domain.com" target="_blank">domain.com</a>;<br>
> if ($invalid_referer) {<br>
> return 403;<br>
> }<br>
> }<br>
<br>
</div>It looks reasonable from here.<br>
<br>
The various repeated directives may fit better one level higher, but<br>
that depends on the rest of the configuration.<br>
<br>
The parentheses ("()") around mp4 in the locations look unnecessary.<br>
<br>
But if it does what you want, it's good.<br>
<div class="HOEnZb"><div class="h5"><br>
f<br>
--<br>
Francis Daly <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>