Apache Jakarta (Tomcat) Connector to forward traffic to specific Tomcat?
-
There is one use case I am unable to solve so far with the Apache Jakarta (Tomcat) Connector load balancing feature. I have one IIS site which has one Apache Tomcat Connector attached to it. I need to "forward" the traffic to a different Tomcat depending on the URI that is requested. It is pretty simple to do when you only have apps with a specific context (like /app1, /app2, etc). My problem is that I have one app (in one Tomcat) that is at / (ROOT) and one other app (in another Tomcat) that is at /app1. I have tried the following config in uriworkermap.properties: /*=loadBalancer1 /app1/*=loadBalancer2 But this doesn't work, because "loadBalancer1" takes all the traffic. "loadBalancer2" is being ignored, which make sense, since /app1/* matches /* (regexp wise). I also tried adding a exclusion as so: /*=loadBalancer1 !/app1/*=loadBalancer1 /app1/*=loadBalancer2 But that doesn't work either, because "loadBalancer1" is still taking all the traffic, but just ignoring that "/app1/*" URI pattern. "loadBalancer2" is simply ignored again. Any suggestion, keeping in mind that I cannot have 2 IIS sites, nor can I move the app that is at / (ROOT) to a different context path in Tomcat? Thank you
-
Answer:
I would say that you should restart the program... Good luck!
1lln3ss at Yahoo! Answers Visit the source
Related Q & A:
- How do I deploy WAR file to Tomcat 6.0?Best solution by Stack Overflow
- How to allow only certain files in Apache?Best solution by Server Fault
- How to do lots of 301 Redirect (Tomcat?Best solution by Stack Overflow
- What is apache tomcat?Best solution by Yahoo! Answers
- How to install tomcat 7 in windows 7?Best solution by ntu.edu.sg
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.