[squid-users] A little help with squid and e-cap
Yuri Voinov
yvoinov at gmail.com
Thu Feb 12 08:10:51 UTC 2015
Start from here:
http://wiki.squid-cache.org/ConfigExamples#Content_Adaptation_features
12.02.15 11:54, Luis Miguel Silva пишет:
> Dear all,
>
> This might not be the ideal place to ask questions about e-cap but,
> since e-cap's mailing list is not working, I decided to ask my
> question here.
>
> So, here goes:
> - *My ecap service only seems to work on some pages*...
> -- I've added the following configuration to my squid.conf:
> loadable_modules /usr/local/lib/ecap_adapter_modifying.so
> ecap_enable on
> ecap_service ecapModifier respmod_precache 0
> ecap://e-cap.org/ecap/services/sample/modifying
> <http://e-cap.org/ecap/services/sample/modifying> victim=professor
> replacement=teacher
> adaptation_access ecapModifier allow all
> -- unfortunately, it *only seems to work some times* (e.g. for
> instance, it works on this one <http://www.pedagua.com/lmsilva/>
> [http://www.pedagua.com/lmsilva/] but not on this one
> <http://en.wikipedia.org/wiki/Professor>
> [http://en.wikipedia.org/wiki/Professor]).
> -- *any idea on how I can debug why? access_log and cache.log aren't
> very helpful.*
>
> - *Does squid obey any specific order between ICAP and E-CAP calls?*
> -- for instance, if the E-CAP module changes the content, will the
> ICAP service receive the changed content OR the original content?
As you configured.
> -- *does ecap and icap directive order in squid.conf matter?*
No.
>
> - *Is each ecap_service loaded on each page load?*
No. Just one time, when Squid starts.
> -- Or does it preload a couple of ecap_services and keep using those
> over and over again (just like it does with c-icap and redirect_programs?)
> -- I can see each ecap module implements configure, reconfigure,
> start, stop and retire methods so...it SHOULD be possible to preload
> the script and just call reconfigure on each call. What does Squid do?
>
> p.s. I'm using squid 3.4.9 (compiled from source), with libecap 0.2
> and I'm using the ecap adapter sample package v0.2.1.
Once more - it is strictly recommended to upgrade to last Squid version,
etc.etc., blah-blah-blah....
>
> Thank you,
> Luis
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150212/0dac2447/attachment-0001.html>
More information about the squid-users
mailing list