1

我对 squid 的 ecap gzip 适配器有疑问。我安装了 squid 3.1.10、libecap 0.0.3 和 squid-ecap-gzip。

对于鱿鱼,我使用了配置:

./configure --prefix=/usr/local/squid --enable-ecap --enable-icap --enable-icap-client  --enable-icap-support --g

我按照安装程序安装了适配器。当我在 cache.log 中启动 squid 时,我可以看到它无法从以下位置加载服务:

ecap://www.vigos.com/ecapal/lib/ecap_adapt_gzip

如果有人知道可能出了什么问题,请告诉我。

4

2 回答 2

1

您必须创建适配器的共享对象“.so”文件,并使用 using 在 squid 配置中指定它

ecap_enable on
loadable_modules <path to .so file>
于 2015-08-11T14:11:51.160 回答
1

你可以像这样加载你的对象/usr/local/squid/etc/squid.conf

ecap_enable on

loadable_modules /usr/local/lib/ecap_adapter_modifying.so

ecap_service ecapModifier respmod_precache uri=ecap://e-cap.org/ecap/services/sample/modifying 

adaptation_access ecapModifier allow all
于 2015-11-09T10:56:41.460 回答