Caching servers in Local ISPs !!

shahzaib shahzaib shahzaib.cb at gmail.com
Tue May 27 12:16:05 UTC 2014


@itpp, thanks for reply. I am working on proxy_cache . My all webservers in
local ISP will be proxy servers and all requests regarding flv,mp4,jpeg
from asia will be route through the proxy servers and data will be cache in
proxy servers. I think, this will help me with caching. I am testing it on
local and its working as it should. Following is the edge server config :

proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=static:1000m;
proxy_temp_path /tmp;


server {
    listen       80;
    server_name  edge.com;
#       proxy_cache one;
        root /var/www/html/test;
access_log /var/log/nginx/access.log ;
    error_log /var/log/nginx/error.log;



 location / {
        proxy_pass http://origin.com:80;
        proxy_cache static;
        proxy_cache_min_uses 1;
            proxy_cache_valid 200 301 302 120m;
#            proxy_cache_valid 404 1m;

   }
}

Please let me know if the method is correct.


On Tue, May 27, 2014 at 3:55 PM, itpp2012 <nginx-forum at nginx.us> wrote:

> I'd call that provisioning, a simple try_files directive can deal with that
> while the provisioning service syncs.
> http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files
>
> Then jump left for cached contents or jump right for non-cached contents.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,249997,250385#msg-250385
>
> _______________________________________________
> 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/20140527/d2f2223b/attachment.html>


More information about the nginx mailing list