|
Installation
Installation1. Download and install libecap Library
wget http://www.measurement-factory.com/tmp/ecap/libecap-0.0.3.tar.gz tar xvfz libecap-0.0.3.tar.gz
cd libecap-0.0.3/ ./configure make make install 2. Download and install VIGOS eCAP GZIP Adapter
wget http://squid-ecap-gzip.googlecode.com/files/squid-ecap-gzip-1.3.0.tar.gz tar xvfz squid-ecap-gzip-1.3.0.tar.gz cd squid-ecap-gzip/ ./configure make make install 3. Download and install SQUID proxy cache, version 3.1+Important: The eCAP feature is only available in SQUID version 3.1 or higher. You cannot use the VIGOS eCAP GZIP adapter with earlier versions of SQUID (e.g. 2.6, 2.7, 3.0).
wget http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.11.tar.gz tar xvfz squid-3.1.11.tar.gz cd squid-3.1.11/ ./configure --enable-ecap make make install 4. Configure SQUID to use VIGOS eCAP GZIP AdapterAdd or edit the following lines in your etc/squid.conf: ecap_enable on ecap_service gzip_service respmod_precache 0 ecap://www.vigos.com/ecap_gzip loadable_modules /usr/local/lib/ecap_adapter_gzip.so acl GZIP_HTTP_STATUS http_status 200 adaptation_access gzip_service allow GZIP_HTTP_STATUS Now, after (re-)starting SQUID, all text/html responses from clients sending the Accept-encoding: gzip HTTP header will be compressed. |
► Sign in to add a comment
If you get a problem compiling libecap edit the file libecap-0.0.2/src/libecap/common/name.cc
change the line
to
it's a bug: https://bugs.launchpad.net/ecap/+bug/327417
I need to install clamav in order to be able to "make" VIGOS eCAP GZIP Adapter: apt-get install clamav
I got file not error found with latest 3.2 Squid
It is working with Squid 3.1
Is it possible to enable compression for other content than text/html, e.g., text/xml, javascript, css, etc.?
failed to ./configure on centos 6.2 .. couldnt proceed with make & make install ... configure: error: the compiler (g++) failed to pass a simple C++ test; check config.log for details
problem solved with installation of gcc-c++ .. yum install gcc-c++ .. then ./configure and then make & make install ...
I am trying to install this on ubuntu latest version and 1st 2 get installed properly, but the squid does not, when i give 'make' command i get following errors.
g++: warning: switch '-fhuge-objects' is no longer supported
and
User.cc: In static member function 'static void AuthUser?::CachedACLsReset()': User.cc:161:17: error: variable 'username' set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors
Can any body let me know how to solve this issue. Trying from 2 days.
I'm getting this error as well.