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@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users