httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flaviu Radulescu <flaviu.radule...@lumminary.com.INVALID>
Subject [users@httpd] Help configure a Reverse proxy with Substitute
Date Fri, 15 Mar 2019 09:47:26 GMT
Dear community,

I need an advice on how to configure a reverse proxy in which I need to replace the <img
src=""> tag from the response html with an ENV variable defined previously. How do you
recommend me to do this?

I tried with substitute, but unfortunately doesn't seem to support variables.

The variable I am setting with the command: SetEnvIf Request_URI "/lp\/([a-zA-Z0-9]*)" st=$1.example.com

and now I would like to use the {st} variable in the substitute

Substitute "s|src=\"(.*?)\"|src=\"%{st}e/lp/$1\"|i"
I tried with %{st}e , ${st} in any combination it doesn't work.

Is there any way in which I can use e previous defined variable in rewriting the proxy response
HTML?

Thank you,

---
FLAVIU RADULESCU | Lumminary  |  lumminary.com<https://lumminary.com/>

PLEASE NOTE:  This email and any file transmitted are confidential and/or legally privileged
and intended only for the person(s) directly addressed. If you are not the intended recipient,
any use, copying, transmission, distribution, or other forms of dissemination is strictly
prohibited. If you have received this email in error, please notify the sender immediately
and permanently delete the email and files, if any.


Mime
View raw message