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.

[1700 byte] By [ddoa] at [2007-11-26 21:08:17]
# 1
HTTP listener's Server Name option allows to specify server name and port which will be used by client.
ddoa at 2007-7-10 2:43:42 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Hi,

I have a similar problem.

I am running Sun Application Server Version 9.01 on a non standard port in a virtual hosting environment and would like to know what the easiest way is to get all the domains running on port 80 with the corresponding virtualhosts.

There are multiple domains provisioned - again on non standard port.

I have tried apache ProxyPass which doesn't seem to want to work for all the images contained within the application server. I.e. the skins look all wrong and the site looks pretty messed up. I am using the same proxypass directive in a succesful config with apache, ssl and zope/plone. Yet with sun app server - no luck.

Here is the relevant section from httpd.conf:

#ProxyRequests Off

#<Proxy *>

#Order deny,allow

#Allow from all

#</Proxy>

#ProxyPass / http://blahblah.com:45317/dancemusic/

#ProxyPassReverse / http://blahblah.com:45317/dancemusic/

#ProxyPass /misc_ http://blahblah.com:45317/misc_

#ProxyPass /p_ http://blahblah.com:45317/p_

I have also tried ajp connector but no luck there either.

Any information or help anyone can provide would be much appreciated.

Dan

dbuchnera at 2007-7-10 2:43:42 > top of Java-index,Application & Integration Servers,Application Servers...