linux poison RSS
linux poison Email

Configure Squid to use other Proxy (cache)

If you want Squid to be part of a hierarchy of proxies or want Squid to fetch content from another proxy
cache_peer proxy.isp.com parent 8080 0 no-query no-digest ever_direct allow all

For Multiple parent
cache_peer proxy.isp1.com parent 8080 0 no-query no-digest default
cache_peer proxy.isp2.com parent 8080 0 no-query no-digest


Multiple parents with weight:
cache_peer proxy.isp1.com parent 8080 0 no-query no-digest weight=1 
cache_peer proxy.isp2.com parent 8080 0 no-query no-digest weight=2


Multiple parents with round-robin:
cache_peer proxy.isp1.com parent 8080 round-robin no-query
cache_peer proxy.isp2.com parent 8080 round-robin no-query
cache_peer proxy.isp3.com parent 8080 round-robin no-query

In above examples proxy.isp1.com, proxy.isp2.com and proxy.isp2.com are other cache servers


1 comments:

Unknown said...


I am running perfectly running reverse proxy server for multiple domains, with 1 TB of RAM, 160 TB of HDD, fast as hell, running at this moment 364 websites, where pass thru data is around 1-5 GB per second. My question is this :

I would like to use cache_peer directive to call the main IP address of the webserver, thru proxy server, i mean another proxy server, not reverse proxy server.

It is the same principe, as you would use proxy server on your computer, connecting to webserver, which is running thru reverse proxy server. So in this scenario, it is actually :

you ... proxy server ... webserver

In my new new scenario, you would not have to use proxy server to connect to my website and cache all content coming to and from my website. In this, scenario should be :

you ... webserver (which is actually ... reverse proxy server ... proxy server ... webserver, but you do not know about this)

I already tried this one on one of my testing server. The speed up was enormous, even for already fast enough websites, because i acually added all cached files to extra 512 MB RAM memory and 2 TB HDD. This proxy was caching all content from website, plus all content coming to and from another websites connected to my original website. Can someone help me with this? Thank you very much. John.

Post a Comment

Related Posts with Thumbnails