Question about loading one more ecap-adapter module

Asked by HDM1991

Hi.

Today, I configured squid to load two ecap-adatper when running. The configure file is as following.

--------------------------configure file--------------------------------------
loadable_modules /adapter/cygmodifying.dll
ecap_service ecapModifier respmod_precache \
    uri=ecap://e-cap.org/ecap/services/sample/modifying \
    victim=</body> \
    replacement-src=inject.html \
adaptation_access ecapModifier allow all

loadable_modules /adapter/cygreplace.dll
ecap_service ecapReplace respmod_precache \
        uri=ecap://e-cap.org/ecap/services/sample/replace \
adaptation_access ecapReplace allow all
--------------------------configure file end--------------------------------------

The vectoring_point option of the two ecap-adapters are all configiured as respmod_precache.
That is, The ecapModifier and ecapReplace are configured to be activated at the same point.

But, When I running squid autually, I find that only one works. Only the ecap-adapter which's
configuration is in front of the configure file works.

So, Is is possible let all of them to work . If possible, How?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
HDM1991
Solved:
Last query:
Last reply:
Revision history for this message
HDM1991 (lionxyes) said :
#1

Just before, I add adaptation_service_chain option to configure file as follwing.

adaptation_service_chain svcRequest ecapModifier ecapReplace

But, It's still not work. Why?

Revision history for this message
HDM1991 (lionxyes) said :
#2

Ok, I solve it.

Here is the right configuration.

--------------------------configure file--------------------------------------
loadable_modules /adapter/cygmodifying.dll
ecap_service ecapModifier respmod_precache \
    uri=ecap://e-cap.org/ecap/services/sample/modifying \
    victim=</body> \
    replacement-src=inject.html \
adaptation_access ecapModifier allow all

loadable_modules /adapter/cygreplace.dll
ecap_service ecapReplace respmod_precache \
        uri=ecap://e-cap.org/ecap/services/sample/replace \
adaptation_access ecapReplace allow all

adaptation_service_chain resqAdapters ecapModifier ecapReplace
adaptation_access resqAdapters allow all
--------------------------configure file end--------------------------------------