> Personally I'd rather put it in a config file and know it's right rather
> than have it break if someone decides to virtual host/firewall/proxy the
> webapp and forgets to tweak the settings just right, (e.g., forgets the
> ProxyPreserveHost directive).
That's why you have automated tests to mak
eters)
which returns an url like
"http://localhost:8080/myapp/app/?......
Thanks for any hints on this,
Oliver
--
View this message in context:
http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html#a13920421
Sent from the Wicket - User mailing list archi
On 25 Nov 2007, at 15:26, Johan Compagner wrote:
also the port?
Yes the port is also contained in the host header so it works fine -
as if the proxy was not there at all. I know that Jetty always
respects the host header.
---
also the port?
On Nov 25, 2007 8:47 PM, John Patterson <[EMAIL PROTECTED]> wrote:
>
> On 25 Nov 2007, at 13:01, Johan Compagner wrote:
>
> > If you virtual host in apache on a server (local ip 10.0.0.1)
> > it will rewrite the url and give it to tomcat
> > Then the request url is really
> > ht
On 25 Nov 2007, at 13:01, Johan Compagner wrote:
If you virtual host in apache on a server (local ip 10.0.0.1)
it will rewrite the url and give it to tomcat
Then the request url is really
http://10.0.0.2:8080/myapp1context/XX
I use Apache as a proxy and have got past this issue by using t
er.com/"; +
> >> RequestCycle.get().urlFor([...]).replaceAll("\\.\\./", "");
> >>
> >> Regards,
> >>
> >> Al
> >>
> >> -------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For addi
uot;");
>>
>> Regards,
>>
>> Al
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ----
Can we then make something where we ask some setting first for the
host part? If not found we generate from the current request, which i
think for many many production environments will not really work
because who doesnt virtualhost or puts apache in front of it?
On 11/25/07, Al Maw <[EMAIL PROTE
Oliver Lieven wrote:
is there a way to determine the complete, absolute URL to a mounted page
(including protocol, host, port, application, filter and destination page)?
I need this to be able to send a link to a Registration-Confirmation page to
a user via email.
Ah, yes, I've been meaning to
gt;> >> What I would need is a method with a signature similar to
>> >>
>> >> url = getAbsolutePath(Request request, Class pageClass,
>> >> PageParameters
>> >> parameters)
>> >>
>> >> which returns an url like
>> >> "
ng relative paths.
> >>
> >> What I would need is a method with a signature similar to
> >>
> >> url = getAbsolutePath(Request request, Class pageClass,
> >> PageParameters
> >> parameters)
> >>
> >> which returns an url lik
rning relative paths.
>>
>> What I would need is a method with a signature similar to
>>
>> url = getAbsolutePath(Request request, Class pageClass,
>> PageParameters
>> parameters)
>>
>> which returns an url like
>> "http://localhost:8080/m
What's wrong with putting this in a configuration file or just a
constant. Because in general this does not really work.
For example, your web server may be behind a proxy or firewall, it may
be clustered (and thus you have many machines instead of just one and
they can't all have the same hos
ePath(Request request, Class pageClass, PageParameters
parameters)
which returns an url like
"http://localhost:8080/myapp/app/?..
Thanks for any hints on this,
Oliver
--
View this message in context:
http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html
14 matches
Mail list logo