You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Matias Blasi <ma...@gmail.com> on 2011/01/10 21:49:26 UTC
Tapestry5 + Tomcat5 + Apache2
Hi all!
I am gentting a problem with a the following scenario:
A tapestry5 application with a field with the @OnEvent mixin (chenillekit)
All this running on Tomcat5, behind Apache2.
I made a Proxy configuration in Apache2 in order to hide the server port:
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyRequests Off
ProxyPreserveHost On
All is working fine, with the exception of on request produced by the
<t:checkbox t:mixins="ck/onevent" t:eventName="cange"....
This field makes the follwing request:
OPTIONS http://hostname:port/app/context/page/component:internalevent...
This is the only request that contains the port number included, and seeing
the generated html I see:
new Ck.OnEvent('change', 'showInterests', false,
'http://hostname:port/app/context/page/component:internalevent',
'');
And the URL parameter is resolved by link.toAbsoluteURI().
The "OPTIONS" request is the only one that is not proxied by the Apache...
Do you know what am I missing?
All this work perfectly browsing the application through the Tomcat port,
the problem just occurs when I try to browse through apache proxy.
Saludos,
Matias.
Re: Tapestry5 + Tomcat5 + Apache2
Posted by LLTYK <LL...@mailinator.com>.
I think apache just isn't expecting urls to be in the js and isn't replacing
it. I wonder if Chenillekit should be using toAbsoluteURI, wouldn't a
relative path work just fine?
As for the solution, well make your own copy of the mixin and fix it (I'd
make it use a relative path instead).
--
View this message in context: http://tapestry-users.832.n2.nabble.com/Tapestry5-Tomcat5-Apache2-tp5908721p5910560.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org