Reverse Proxy with JS files Not Working
807567May 21 2009 — edited May 23 2009I have up and running Web Server 7 U5 on Windows 2003.
The config is very basic with a rewrite of /idm to host.internal.com/idm. I used the browser interface for these. I didn't touch the files myself.
Everything is working fine except the .JS files.
The relevant config lines in obj.conf are:
NameTrans fn="map" from="/idm" name="reverse-proxy-/idm" to="http:/idm
....
<Object name="reverse-proxy-/idm">
Route fn="set-origin-server" server="host.internal.com"
</Object>
As I mentioned all the html seems to be re-written OK except in the JS files.
My JS file has:
window.location.href='http://host.internal.com/idm/user/questionLogin.jsp?accountId=' + id;
This is not re-written so the end user browser is directed to a page he can't get to behind the proxy.
Any Thoughts?
Thanks in advance.