webwasher
Keep Your Web Clean



Squid ICAP Client Development



Getting Started with Squid/ICAP and WebWasher
  1. Get the ICAP enabled squid code by either checking out from CVS or by applying the ICAP patch. See http://www.webwasher.com/squid-icap for information on CVS access. Run bootstrap.sh (you need autoconf 2.13 and automake 1.5 for this):
    cd [source directory] 
    ./bootstrap.sh
  2. Build Squid:
    cd [source directory]
    ./configure --enable-icap-support --prefix=/usr/local/squid
    make
    make install
    
  3. Customize your squid.conf (in /usr/local/squid/etc):
    • Modify http_access statements to be able to access Squid:
      http_access allow all
    • Add ICAP settings:
      icap_enable on
      icap_service service_1 reqmod_precache 0 icap://localhost:1344/wwreqmod
      icap_service service_2 respmod_precache 0 icap://localhost:1344/wwrespmod
      icap_class class_1 service_1 service_2
      icap_access class_1 allow all
      

      Replace "localhost" by the IP number of the WebWasher ICAP server if it is not running on the same machine. This example configuration enables both Reqmod and Respmod for each http request.

  4. Create the cache directories:
    /usr/local/squid/bin/squid -z
  5. Start WebWasher and make sure it has a valid license.
  6. Start Squid and try it out:
    /usr/local/squid/bin/squid -N -d1


Last update: 29-06-2005 ©webwasher AG Ralf Horstmann