You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ross Greinke <ro...@att.net> on 2011/07/09 03:30:42 UTC
ZoneUpdater uses proxy URL rather than external URL
(Apache/Tomcat/mod_proxy)
I'm trying to use Inge's ZoneUpdater and have found a problem that I wonder
if anyone has solved. My tapestry app is running in tomcat behind apache
using mod_proxy:
ProxyPass / http://127.0.0.1:7070/
ProxyPassReverse / http://127.0.0.1:7070/
When the ZoneUpdater code tries to execute the line
String url = resources.createEventLink(event, context).toAbsoluteURI();
The url ends up using the internal URL (127.0.0.1....) rather than the
outside URL (mysite.com/....)
Thanks,
Ross
--
View this message in context: http://tapestry.1045711.n5.nabble.com/ZoneUpdater-uses-proxy-URL-rather-than-external-URL-Apache-Tomcat-mod-proxy-tp4567155p4567155.html
Sent from the Tapestry - User 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
Re: ZoneUpdater uses proxy URL rather than external URL
(Apache/Tomcat/mod_proxy)
Posted by Ross Greinke <ro...@att.net>.
Taha Hafeez wrote:
>
> Hi Ross,
>
> I don't think it has anything to do with ZoneUpdater or Tapestry. The base
> url/context is provided by the servlet container. I think the solution
> will
> be to replace http://127.0.0.1:7070/ by your domain name:port
>
> regards
> Taha
>
You're right. I used a relative URL instead by changing the line in the
ZoneUpdater to be relative:
//String url = resources.createEventLink(event, context).toAbsoluteURI();
String url = resources.createEventLink(event, context).toURI();
Thanks for the tip.
Ross
--
View this message in context: http://tapestry.1045711.n5.nabble.com/ZoneUpdater-uses-proxy-URL-rather-than-external-URL-Apache-Tomcat-mod-proxy-tp4567155p4568387.html
Sent from the Tapestry - User 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
Re: ZoneUpdater uses proxy URL rather than external URL (Apache/Tomcat/mod_proxy)
Posted by Taha Hafeez <ta...@gmail.com>.
Hi Ross,
I don't think it has anything to do with ZoneUpdater or Tapestry. The base
url/context is provided by the servlet container. I think the solution will
be to replace http://127.0.0.1:7070/ by your domain name:port
regards
Taha
On Sat, Jul 9, 2011 at 7:00 AM, Ross Greinke <ro...@att.net> wrote:
> I'm trying to use Inge's ZoneUpdater and have found a problem that I wonder
> if anyone has solved. My tapestry app is running in tomcat behind apache
> using mod_proxy:
>
> ProxyPass / http://127.0.0.1:7070/
> ProxyPassReverse / http://127.0.0.1:7070/
>
> When the ZoneUpdater code tries to execute the line
>
> String url = resources.createEventLink(event, context).toAbsoluteURI();
>
> The url ends up using the internal URL (127.0.0.1....) rather than the
> outside URL (mysite.com/....)
>
> Thanks,
>
> Ross
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ZoneUpdater-uses-proxy-URL-rather-than-external-URL-Apache-Tomcat-mod-proxy-tp4567155p4567155.html
> Sent from the Tapestry - User 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
>
>