Re: having webapp reachable at two URLs

2004-05-12 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 probably

RE: having webapp reachable at two URLs

2004-05-12 Thread Shapira, Yoav
] 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 asking a question, since I don't know). ;) No. Jk can't rewrite

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 configure

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

having webapp reachable at two URLs

2004-05-11 Thread Mats Henrikson
Hi, I want to make a certain Tomcat webapp available at two different URLs, but still be coming from the same source. I seem to remember having seen documentation on how to do this, but I can't find it now. I am using Tomcat 4.1.30. Say I have the following being served by a Tomcat instance:

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

RE: having webapp reachable at two URLs

2004-05-11 Thread Shapira, Yoav
: 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 database connections etc, is there a way

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
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 solution

RE: having webapp reachable at two URLs

2004-05-11 Thread Mike Curwen
: having webapp reachable at two URLs Hi, I want to make a certain Tomcat webapp available at two different URLs, but still be coming from the same source. I seem to remember having seen documentation on how to do this, but I can't find it now. I am using Tomcat 4.1.30. Say I have

Re: having webapp reachable at two URLs

2004-05-11 Thread Tim Funk
, 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: having webapp reachable at two URLs Hi, I want to make a certain Tomcat webapp available at two different URLs, but still be coming