<div dir="ltr">Thanks a lot itpp. :) I'll look into it and get back to you. <br><br>Thanks again for quick solution :)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 8:26 PM, itpp2012 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">shahzaib1232 Wrote:<br>
-------------------------------------------------------<br>
<div class="">> @itpp I am currenlty proceeding with proxy_cache method just because i<br>
> had<br>
> to done this in emergency mode due to boss pressure :-|. I have a<br>
> quick<br>
> question, can i make nginx to cache files for specific clients ?<br>
><br>
> Like, if our caching servers are deployed by only single ISP named<br>
> "ptcl".<br>
> So if ip from ptcl client is browsing video, only his requested file<br>
> should<br>
> be cached not for any other client, does nginx support that ??<br>
<br>
</div>You could do this based on some IP ranges or via<br>
<a href="https://github.com/flant/nginx-http-rdns" target="_blank">https://github.com/flant/nginx-http-rdns</a><br>
<br>
See<br>
<a href="http://serverfault.com/questions/380642/nginx-how-to-redirect-users-with-certain-ip-to-special-page" target="_blank">http://serverfault.com/questions/380642/nginx-how-to-redirect-users-with-certain-ip-to-special-page</a><br>

and<br>
<a href="http://www.cyberciti.biz/faq/nginx-redirect-backend-traffic-based-upon-client-ip-address/" target="_blank">http://www.cyberciti.biz/faq/nginx-redirect-backend-traffic-based-upon-client-ip-address/</a><br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,249997,250707#msg-250707" target="_blank">http://forum.nginx.org/read.php?2,249997,250707#msg-250707</a><br>
<div class="HOEnZb"><div class="h5"><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>