Re: [squid-users] Fwd: Url redirection to ip

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 16 Jul 2008 21:03:49 +0200

acl new urlpath_regex ^/login/new
acl test urlpath_regex ^/login/test

cache_peer_access server_a allow test
cache_peer_access server_b allow new

or alternatively

cache_peer_access server_a deny new
cache_peer_access server_b allow new

Regards
Henrik

On ons, 2008-07-16 at 14:58 -0400, jason bronson wrote:
> could you give me an example?
>
>
> On Tue, Jul 15, 2008 at 2:55 PM, Henrik Nordstrom
> <henrik_at_henriknordstrom.net> wrote:
> > On mĂĽn, 2008-07-14 at 16:31 -0400, jason bronson wrote:
> >> Is it possible to redirect based on a URL path in squid example
> >>
> >> I have
> >> 63.45.45.45/login/test
> >> 63.45.45.45/login/new
> >>
> >> 63.45.45.45/login/test --> 10.108.111.34
> >> 63.45.45.45/login/new --> 10.108.18.254
> >
> > Yes, by using url_regex acls in cache_peer_access.
> >
> > Regards
> > Henrik
> >
> >
>
>
>
Received on Wed Jul 16 2008 - 19:03:55 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 17 2008 - 12:00:03 MDT