Assuming I have an apache server that I use for reverse proxy on multiple applications with the following config:
<LocationMatch "/[a-f0-9]{8}/applicationA.*">
RewriteEngine On
RewriteRule "/[a-f0-9]{8}/applicationA(.*)" "https://applicationA.com/index.html?someParameters" [P]
ProxyAddHeaders off
</LocationMatch>
I would have something similar for applicationB etc.
The issue is, one of the application needs to have js rewritting too, because if my host is https://foo.bar and I try https://applicationB.com/123/applicationB I'm having issue getting applicationB working because the js it is using are requested as https://foo.bar/js/js1.js instead of https://applicationB.com/js/js1.js
How can I say that every js file requested to the proxy server need to re-write too ?