I have below config, non essential stuff removed
<Location /test/>
ProxyPassReverse http://backendhost.com
ProxyPassReverse /
</Location>
It happens that backend sends Location header already correctly pointing to the
front end, no need to rewrite, like this
Location:https://frontendhost.com/test/
Apache directive ProxyPassReverse / is suppose to handle use cases when a
back end server is not adding any host in Location, just a relative URI, but
what happens it converts
Location:https://frontendhost.com/test/ into
Location:https://frontendhost.com/test/test/
Thanks,
Vlad