Browser > Transparant proxy > Apache proxy > AppServer issue
Hi. I want to access my web application running on Sun Java Application Server Platform Edition 9.0 via Apache web server. Application server listen on port 8080 and I can type in browserhttp://myhost.com:8080/myapp/.
Then I run Apache on port 80. I usemod_proxy to make Apache work as a proxy:
ProxyRequests Off
ProxyPass /myapp/ http://myhost.com:8080/myapp/
ProxyPassReverse /myapp/ http://myhost.com:8080/myapp/
I type in browserhttp://myhost.com/myapp/ and it works well. But there is a server in network which has transparant proxy (Squid) that maps URLs likehttp://resource.thishost.com/ tohttp://myhost.com/ so that when I typehttp://resource.thishost.com/myapp/ I should get my app. Actualy I get it but address string in browser becomehttp://myhost.com/myapp/ instead ofhttp://resource.thishost.com/myapp/, and all hyperlinks in page too.
I've been tested this with another resource. I put in Apache's config:
ProxyRequests Off
ProxyPass /test/ http://www.linux.org/
ProxyPassReverse /test/ http://www.linux.org/
And when I typehttp://resource.thishost.com/test/ in browser I getlinux.org page and not address in browser nor links in page are changed. So this is an application server issue, right? I know Tomcat hasproxyHost andproxyPort listener options and I suppose application server has such options too. How can I setup application server to work well in this scheme?
Thanks a lot.

