So I currently have a proxy configuration that looks like the following:
ProxyPassMatch ^/foo/bar/(.+)$ https://xyz.domain.net/$1
ProxyPassReverse ^/foo/bar/(.+)$ https://xyz.domain.net/$1
ProxyPreserveHost Off
I'm trying to map, for example, https://my.website.com/foo/bar/home
to https://xyz.domain.net/home
.
The proxypass seems to be working as I can see the webpage from xyz.domain.net/home
, however the webpage is the ONLY thing that seems to be being proxied. All other assets such as js files or fonts are not being correctly requested.
For example, when loading https://xyz.domain.net/home
this page fetches https://xyz.domain.net/scripts/index.js
. However, when accessing it via the proxy URL https://my.website.com/foo/bar/home
the asset is instead attempted to be retrieved from https://my.website.com/scripts/index.js
and of course is responded with a 404.
Is there any other proxy directive which I must include in order for the assets loaded by the page to also be retrieved from the xyz.domain
server?
As another piece of information, I've attempted ProxyPreserveHost On
instead of Off
but this retrieves a 403 from the end server on every page I try to access to.
I am using Oracle HTTP Server version 12.2.1.4
Thank you in advance.