Yeah, that's what I'd found. I had looked at the "Wicket Behind a Proxy" wiki page. I'm using mod_proxy and proxypassreverse, but not the preserve host setting. I had originally set much of the host information in settings files, but when I moved from wicket 2.0 to 1.4 some of that code broke due to how wicket was handling relative urls. I thought about setting a custom header in the request, but instead I have gone back to setting the hostname in a settings file and then using wicket to discover the context and page path, and then building the url from the three.
Thanks for the help! Regards, Matthew. On Sat, Jun 28, 2008 at 1:52 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > true, as you write it's actually the proxy that fuddles it up.. > > Timo Rantalaiho wrote: > >> On Fri, 27 Jun 2008, Matthew Hanlon wrote: >> >> >>> I was having a problem getting the full url of a page or resource after >>> deploying my application behind a proxy. >>> >> ... >> >> >>> However, after deploying behind a proxy, I was expecting to get " >>> http://my.domain.com/MyResourcePage/resouce/xxx" and instead was getting >>> " >>> http://localhost:8080/MyResourcePage/resouce/xxx". So I adjusted to >>> doing >>> >>> >> >> I have been told that in the end of the day, the only surely universal way >> to get the host name you want is to put it manually in some configuration >> file in your application. >> >> In a specific context, you might get it right by configuring >> the proxy to pass on the original request hostname either directly in the >> proxied request or in a custom header. >> >> This is not a Wicket specific thing. >> >> Best wishes, >> Timo >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Matthew Rollins Hanlon http://squareoftwo.org _____________________ Hanlon's Razor: "Never attribute to malice that which can be adequately explained by stupidity." http://wikipedia.org/wiki/Hanlon's_razor
