If you virtual host in apache on a server (local ip 10.0.0.1)

so

www.mydomain.com/

is virtual hosted by a tomcat server on a local network (10.0.0.2)

10.0.0.2:8080/myapp1context

and you do a request to apach
it will rewrite the url and give it to tomcat
Then the request url is really
http://10.0.0.2:8080/myapp1context/XXXXXX

this pdf also explains it a bit:
http://www.amitysolutions.com.au/documents/URLRewriting-technote.pdf

On Nov 25, 2007 7:32 PM, Jonathan Locke <[EMAIL PROTECTED]> wrote:

>
>
> sounds okay, but is it really necessary?  can you explain why?
> i always thought the browser would send the full request URL.
> in fact, i've had tomcat behind apache and this just works.
>
>
> Johan Compagner wrote:
> >
> > 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 PROTECTED]> wrote:
> >> 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 get around to fixing that since forever,
> >> sorry. :-(
> >>
> >> See http://issues.apache.org/jira/browse/WICKET-609
> >>
> >> That's pretty apalling in terms of timescales. Apologies to all
> >> involved. Will have a look before RC2, promise. ;-)
> >>
> >> In the meantime, you can go:
> >> String url = "http://yourserver.com/"; +
> >> RequestCycle.get().urlFor([...]).replaceAll("\\.\\./", "");
> >>
> >> Regards,
> >>
> >> Al
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-determine-absolute-URL-of-a-mounted-page--tf4864119.html#a13938331
> Sent from the Wicket - User mailing list archive at 
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to