This content has been marked as final.
Show 2 replies
-
1. Re: Remoting Destination Port Problem
andin Feb 15, 2009 4:57 PM (in response to andin)Hmmm. stupid me.
The Same Origin Policy is effectivly blocking my efforts...
Why am a doing such stuff? I wan't to get some new information in a legacy app, without messing with its code.
Maybe I try with apache acting as a proxy...
-
2. Re: Remoting Destination Port Problem
andin Feb 15, 2009 10:28 PM (in response to andin)I love this stuff!
Enable Proxy for apache2
a2enmod proxy a2enmod proxy_http
setup site:
<VirtualHost *:80> ProxyPreserveHost on <Location /xyz> ProxyPass http://127.0.0.1:8081/xyz ProxyPassReverse http://127.0.0.1:8081/xyz Order allow,deny allow from all </Location>
server/default/deploy/jboss-web.deployer/server.xml
<Connector protocol="HTTP/1.1" port="8081" address="${jboss.bind.address}" enableLookups="false" connectionTimeout="20000" redirectPort="8443" proxyName="yourhostnamehere" proxyPort="80" />
This does the trick for a local setup. Nice!