Score:0

Apache using an expression in the mod_ext_filter module

gb flag

I need to configure an apache reverse proxy to return a js script on each page. For that, I use a perl script that injects the javascript to the pages. To do this, I used the following directive: ExtFilterDefine fixtext mode=output intype=text/html cmd="/home/eloi/leanovia/observability/webserver-script/ttk-js-rum-injector.perl ${cookies_retrieved}" I succeeded until this step.

However, I need to get the cookies from the request to use it in the javascript. I know I need to use expr=%{req:Cookie}

However, the expression does not evaluate when I use it like this:

ExtFilterDefine fixtext mode=output intype=text/html cmd="/home/eloi/leanovia/observability/webserver-script/ttk-js-rum-injector.perl expr=%{req:Cookie}"

I know I'm really close to the solution, but I've been struggling for hours trying to get the expression evaluated, without success. I haven't found a solution to my problem. I know that it is possible to send a header in the response that evaluates this expression, since I could test it with this directive:

Header set eloi "${cookies_retrieved}"

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.