Little bit of a newb when it comes to configuring httpd but here's my situation:
I'm trying to proxy an application (let's call it catsapp) that I have no control over with httpd.
catsapp, an html/javascript application, has httpd running in front of it as well. But I can't mess with that configuration, I can only control the top-level httpd config.
Turns out that inside of the index.html
of catsapp, there is a javascript call:
window.location="viewer.html"
Which is meant to load the viewer page.
Normally, writing the ProxyPass
directive is easy enough and this is what I have currently:
ProxyPass /catsapp http://catsapp-server timeout=600
ProxyPassReverse /catsapp http://catsapp-server timeout=600
This does not work however. If I navigate to example.com/catsapp
I get a 200 OK
followed immediately by 404 Not Found
because the browser tries to load example.com/viewer.html
instead of example.com/catsapp/viewer.html
.
Is there some way to configure the root httpd server so that when catsapp calls window.location="viewer.html"
it resolves to example.com/catsapp/viewer.html
?