Re: [squid-users] How does squid choose the ICAP service into more than two configured.

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 10 Jul 2008 10:39:13 +0200

On tor, 2008-07-10 at 14:56 +0900, S.KOBAYASHI wrote:
> Hello everyone,
>
> Let me ask to you a favor.
>
> Now I configured for ICAP as below.
> icap_service service_1 respmod_precache 0 icap://192.168.10.231:1344/respmod
> icap_service service_2 respmod_precache 0 icap://192.168.10.232:1344/respmod
>
> icap_class class_1 service_1
> icap_class class_2 service_2
>
>
> I want the squid to switch to service2 when client access specified URL.
> However, I do not have an idea to control ICAP service.
> Usually only service_1 is being used.

See icap_access.

One example:

acl special_urls dstdomain .example.com .example.net
icap_access class_2 allow special_urls
icap_access class_1 allow all

Regards
Henrik

Received on Thu Jul 10 2008 - 08:39:53 MDT

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