Caching servers in Local ISPs !!
shahzaib shahzaib
shahzaib.cb at gmail.com
Fri Jun 6 13:36:27 UTC 2014
@itpp I am currenlty proceeding with proxy_cache method just because i had
to done this in emergency mode due to boss pressure :-|. I have a quick
question, can i make nginx to cache files for specific clients ?
Like, if our caching servers are deployed by only single ISP named "ptcl".
So if ip from ptcl client is browsing video, only his requested file should
be cached not for any other client, does nginx support that ??
I know its kind of funny, but i've to complete this task :(
On Thu, Jun 5, 2014 at 12:23 AM, shahzaib shahzaib <shahzaib.cb at gmail.com>
wrote:
> >>Also sync to a temp folder and move after completion or nginx will
> attempt
> to send partial files.
>
> Oh right. Thanks for quick help and suggestion :). I'll look into wanproxy
> now.
>
>
>
>
> On Thu, Jun 5, 2014 at 12:19 AM, itpp2012 <nginx-forum at nginx.us> wrote:
>
>> shahzaib1232 Wrote:
>> -------------------------------------------------------
>> > @itpp, i just used your method try_files and it worked flawlessly :).
>> > Following is the testing config :
>> >
>> > server {
>> > listen 80;
>> > server_name domain.com;
>> > root /var/www/html/files;
>> >
>> > location / {
>>
>> location ~* (\.mp3|\.avi|\.mp4)$ {
>>
>> > Should i use rsync or lsync for mirroring the files between Origin and
>> > caching server ?
>>
>> Whatever works for you, I'd prefer rsync since that's easier to schedule
>> for
>> off-peek hours.
>> Also sync to a temp folder and move after completion or nginx will attempt
>> to send partial files.
>> see also http://wanproxy.org/
>>
>> Posted at Nginx Forum:
>> http://forum.nginx.org/read.php?2,249997,250645#msg-250645
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140606/4cfa5f9e/attachment.html>
More information about the nginx
mailing list