[squid-users] cicap lines in squid.conf

Alex Rousskov rousskov at measurement-factory.com
Wed Sep 29 13:49:29 UTC 2021


On 9/29/21 8:46 AM, robert k Wild wrote:
> hi all,
> 
> going by this link
> 
> https://wiki.squid-cache.org/ConfigExamples/ContentAdaptation/C-ICAP
> 
> theres two icap configuration options, what one should i use

The answer depends on what you are using c-icap for:

* If you want to adapt (including inspect) HTTP requests, then use a
reqmod_precache vectoring point.

* If you want to adapt (including inspect) HTTP responses, then use a
respmod_precache vectoring point.

* If you want to adapt (including inspect) all HTTP messages, then use
both vectoring points.


HTH,

Alex.


> as atm i have this in my squid.conf
> 
> #ICAP
> icap_enable on
> adaptation_uses_indirect_client on
> icap_send_client_ip on
> icap_send_client_username on
> icap_client_username_header X-Authenticated-User
> icap_service service_req reqmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav 
> adaptation_access service_req allow all
> icap_service service_resp respmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav
> adaptation_access service_resp allow all



More information about the squid-users mailing list