Hi, Have you considered tomcat's balancer webapp? It does the same stuff as I mentioned before with the filter, only the code is there for you, you just need to configure it.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Mats Henrikson [mailto:[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 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 >be >> the "easiest". > >Aha, you have figured out what I am trying to do then, and now this >email will get a bit more complex... > >I'm using Apache2 and mod_jk to connect to Tomcat. The reason I need the >webapp deployed at two different URL's in Tomcat is that I need two >different <Location> blocks in Apache to deal with two different ways of >authenticating users. > >Like you said though, I haven't found a way to do this using mod_jk, >which would be the best and simplest way to do it otherwise. > >So, I looked into mod_rewrite, and successfully managed to set it up so >that I can reach the webapp from two different URL's, and mod_rewite >then forwards to the same JkMount. However, the mod_rewrite directives >are evaluated very early in the connection process, before any ><Location> blocks are considered. This means that by the time Apache >starts thinking about which <Location> block to use, the URL has already >been rewritten, and so the same block is considered no matter which >initial URL was used by the user, effectively bypassing the extra ><Location> I wanted them to go through. > >So I gave up on the mod_rewrite, and started considering if I could >deploy the same context at two different URL's in Tomcat instead, but if >anybody has a better idea which might work please speak up! > >Regards, >-- >Mats Henrikson >Unix Systems Programmer >Systems Development & Support >Oxford University Computing Services > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
