Configuring the Squid service for HAProxy
Configuring the Squid service for HAProxy
19 December 2024
ID 173534
Before completing the steps described in this section, make sure that the Squid service is installed and configured according to the instructions provided in Appendices 1 and 2.
To configure the Squid service for HAProxy:
- Change the settings of the Squid service. To do so, in the /etc/squid/squid.conf configuration file, in the icap_service directive, specify the IP address of the HAProxy server instead of 127.0.0.1:
icap_service kwts_req reqmod_precache icap://<IP address of the server with HAProxy>:1344/av/reqmod
icap_service kwts_res respmod_precache icap://<IP address of the server with HAProxy>:1344/av/respmod
- Restart the Squid service. To do so, execute the command:
service squid restart
Configuration of the Squid service for HAProxy is now complete.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.