Kent,

> Have you considered using mod_rewrite (in Apache) to convert
> the one URL to the other?

Thanks for the suggestion. Actually, I already use mod_proxy on my proxy
server to rewrite the URLs to something like this:

  ProxyPass /cxt/ http://192.168.x.x:8080/cxt/
  ProxyPassReverse /cxt/ http://192.168.x.x:8080/cxt/

What you're suggesting won't really change anything, I think, since there
would be no way of knowing how to do the reverse mapping. In other words, if
I mount my project on "wicket", and redirect "cxt1" and "cxt2", I would have
to write this:

  ProxyPass /cxt1/ http://192.168.2.2/wicket/
  ProxyPassReverse /cxt1/ http://192.168.2.2/wicket/

  ProxyPass /cxt2/ http://192.168.2.2/wicket/
  ProxyPassReverse /cxt2/ http://192.168.2.2/wicket/

The "ProxyPass" commands are fine, but there is a problem with the reverse
mapping, since the same path maps to two different values. Unless, of
course, mod_proxy is much smarter than I am assuming.

What could be possible is this:

  ProxyPass /cxt1/ http://192.168.2.2/wicket/cxt1/
  ProxyPassReverse /cxt1/ http://192.168.2.2/wicket/cxt1/

  ProxyPass /cxt2/ http://192.168.2.2/wicket/cxt2/
  ProxyPassReverse /cxt2/ http://192.168.2.2/cxt2/

But, like I wrote in my last mail, I don't see the difference...


Is there something I didn't consider that you were trying to suggest?

> Your app can still retrieve the
> requested URL to determine the branding.

Oh... you did point out one thing that I didn't fully appreciate until
now... you're right! Even if I rewrite the URL with mod_proxy, the original
request stays intact... this could be useful... Thanks!


Cheers,
Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to