[squid-users] Multiple hosts with cache_peer and urlpath_regex

From: Chris Malek <k.malek@dont-contact.us>
Date: Mon, 25 Feb 2008 09:23:55 -0500

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.

Received on Mon Feb 25 2008 - 07:23:59 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST