RE: having webapp reachable at two URLs

2004-05-12 Thread Mats Henrikson
Yoav, > > Have you considered tomcat's balancer webapp? Right, from what I can tell from the docs it seems that the Tomcat balancer webapp cheats, and actually send a redirect back to the client. Unfortunately that wont do what I need it to do, as all it can do then is redirect the client back

RE: having webapp reachable at two URLs

2004-05-12 Thread Mats Henrikson
Yoav, > Have you considered tomcat's balancer webapp? Hmmm, no, I am still using Tomcat4 so I didn't actually know it existed, the docs make it look interesting though. > It does the same stuff as > I mentioned before with the filter, only the code is there for you, you > just need to configu

RE: having webapp reachable at two URLs

2004-05-12 Thread Shapira, Yoav
ilto:[EMAIL PROTECTED] >Sent: Wednesday, May 12, 2004 2:54 AM >To: Tomcat Users List >Subject: Re: having webapp reachable at two URLs > >Tim, Mike, > >> > If you use Apache in front with jk, could you supply two different >> > jkmount directives ? (I'm actually aski

Re: having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Tim, Mike, > > If you use Apache in front with jk, could you supply two different > > jkmount directives ? (I'm actually asking a question, since I don't > > know). ;) > No. Jk can't rewrite the request. But mod_rewrite can. > > In fact - based on the problem below - using mod_rewrite would pr

Re: having webapp reachable at two URLs

2004-05-11 Thread Tim Funk
No. Jk can't rewrite the request. But mod_rewrite can. In fact - based on the problem below - using mod_rewrite would probably be the "easiest". -Tim Mike Curwen wrote: If you use Apache in front with jk, could you supply two different jkmount directives ? (I'm actually asking a question, sin

RE: having webapp reachable at two URLs

2004-05-11 Thread Mike Curwen
If you use Apache in front with jk, could you supply two different jkmount directives ? (I'm actually asking a question, since I don't know). ;) > -Original Message- > From: Mats Henrikson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 11, 2004 11:00 AM > To: Tomcat User > Subject: h

RE: having webapp reachable at two URLs

2004-05-11 Thread Shapira, Yoav
Howdy, >> You can have a simple redirect filter mapped to /* in one context that >> just redirects to the other. > >This sounds like a good way to do it, but I can't seem to find any docs >on how to do redirects from inside a context definition. Am I missing >something obvious here? Yeah: my sol

RE: having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Yoav, > You can have a simple redirect filter mapped to /* in one context that > just redirects to the other. This sounds like a good way to do it, but I can't seem to find any docs on how to do redirects from inside a context definition. Am I missing something obvious here? Mats -

RE: having webapp reachable at two URLs

2004-05-11 Thread Shapira, Yoav
ist >Subject: Re: having webapp reachable at two URLs > >Right, I managed to find some more info on this pointing me in the >direction of setting up two different contexts in server.xml, with the >same docBase but different path. However, as doing this would also >double the databa

Re: having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Right, I managed to find some more info on this pointing me in the direction of setting up two different contexts in server.xml, with the same docBase but different path. However, as doing this would also double the database connections etc, is there a way of doing this with just a single context a