Search squid archive

Multiple hosts with cache_peer and urlpath_regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello squid users,

I'm a bit puzzled here. I was recently asked to setup a squid box with
the following requirements:

when people would hit http://example.com/srv1 that request should go to
server1
and http://example.com/srv2 and that request should go to server2

I have tried the following, but with no success:

cache_peer ip.of.server1 parent 80 0 no-query originserver name=server1
cache_peer ip.of.server2 parent 80 0 no-query originserver name=server2
acl foo urlpath_regex ^/foo
cache_peer_access server2 allow foo
cache_peer_access server1 deny foo


I'm getting "The requested URL could not be retrieved" error.
Can anyone put me on right track here?

Thanks
Chris.
begin:vcard
fn:Chris Malek
n:Malek;Chris
org:CSDC Systems Inc.;IT
adr:Suite 1;;1705 Tech Avenue;Mississauga;ON;L4W 0A2;Canada
email;internet:k.malek@xxxxxxxxxxxxxxx
title:System Administrator / IT Analyst
tel;work:905 206-1296 ext 303
x-mozilla-html:FALSE
url:http://www.csdcsystems.com
version:2.1
end:vcard


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux