Squid server - multiple originservers with different domains

Posted by jduncan on Stack Overflow See other posts from Stack Overflow or by jduncan
Published on 2010-03-25T01:55:49Z Indexed on 2010/03/25 2:03 UTC
Read the original article Hit count: 255

Filed under:
|

I have 2 squid servers load-balanced with F5 LTMs set up as a reverse proxy.

My problem:

origin server A hosts domains 1, 2, and 3 origin server B hosts domains 4 and 5.

how can I set up squid so that it will cache all vhosts for both servers?

my current config:

cache_peer serverA parent 80 0 round-robin no-query originserver login=PASS

If I add a second line:

cache_peer serverB parent 80 0 round-robin no-query originserver login=PASS

it only caches domains on serverB, requests for serverA content generate 404 errors.

I don't use squid a whole lot, and all help is appreciated. thanks.

© Stack Overflow or respective owner

Related posts about squid

Related posts about caching