Simple solution (assuming that I am understanding the issue) - Turbine does pick up the host name of any virtual host that it is running on. It will then use the name of the virtual host DynamicURI builds the link for you. I have this running in a production environment right now with no problems at all.
-----Original Message----- From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: Re: URL resolving question "Chris K Chew" <[EMAIL PROTECTED]> writes: >My experience is that Turbine will pick up the firewall's public ip >address/port and not the private ip/port. >This because o.a.t.util.DynamicURI eventually uses the ServerData >object, which is populated by TurbineRunDataService.getRunData() for >each request, according to the request. And the request http headers >will contain the ip, hostname/alias, and port of the firewall, because >that is where the public client thinks the http server is. As far as >my experience goes, a packet-forwarding firewall does not change the >http headers, but only the tcp/ip headers. >In short, your setup should work fine behind the firewall with no >changes to your application, that is, mine does anyway. Only if you don't NAT / rewrite addresses. If you have this scenario: Internet ----- Firewall ------ server.foo.org visible as xxx.foo.org and you request http://xxx.foo.org/app/servlet/app/ then turbine will get "server.foo.org" in the HTTP Request, because that's what the server knows about. So all the links in the page will contain http://server.foo.org/app/servlet/app/ which does not work. There is currently no easy way around this. I might consider hand-stuffing the ServerData object from the properties for this scenario. Ping me for it, once we have a 2.2 release. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED] Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] D-91054 Buckenhof Fax.: 09131 / 50654-20 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
