On Feb 25, 2008, at 2:01 PM, Amos Jeffries wrote:
Chris Malek wrote:
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?
not quite enough foo ;-)
cache_peer_access server1 allow foo1
cache_peer_access server1 deny foo2
never_direct deny foo1
cache_peer_access server2 allow foo2
cache_peer_access server2 deny foo1
never_direct deny foo2
(I'm a bit fuzzy this morning, but I think I've got the never_direct
allow/deny the right way round.)
Amos
Is never_direct really necessary in the accelerator mode?
Ric