You should create an index.jsp to replace the standard index.html of the tomcat installation. here is an example based on our setup (we have a separate hostname for SRM for ease of use).

<%@ page session="false" %>
<%
String redirectURL = "http://"+request.getHeader("host")+"/arsys/home"; //default redirect to default AR server

if (request.getHeader("host").equals("www.IwantServerA.com")) {//redirect to server A (SRM) redirectURL = "http://"+request.getHeader("host")+"/arsys/shared/login.jsp?/arsys/forms/ServerA/SRS%3AServiceRequestConsole/enduser";
} else if (request.getHeader("host").equals("www.IwantServerB.com")) {
redirectURL = "http://"+request.getHeader("host")+"/arsys/shared/login.jsp?/arsys/forms/ServerB/Home+Page";
}

response.sendRedirect(redirectURL);
%>

Hope it helps

Jonas
jonas.stumph.stevns...@nordea.com


Den 16-03-2012 20:06, Pruitt, Christopher (Bank of America Account) skrev:
**
I am hoping someone on this list has done this before and can provide some quick answers. We are setting up a several new Mid-Tier servers along with several new AR System Servers. The Mid-Tier servers will have a load balancer hardware in front of it. What I have been asked to do is to set up Tomcat on these two new Mid-Tier servers so that Tomcat has the ability to evaluate the URL the user is coming in on from the internet and redirecting that user to a specific server. This is what we are planning. We have two servers ARServer A and ARServer B and the user uses the URL "_www.Iwant ServerA.com_ <http://www.Iwant%20ServerA.com>" we want Tomcat to redirect them to ARServerA (SUN) if they use a different URL say "_www.Iwant ServerB.com_ <http://www.Iwant%20ServerB.com>" Tomcat would redirect them to ARServerB (HP). Is this possible in Tomcat? If so, where can I find the instructions on how to do that?
We are running
Two UNIX Servers One server is a SUN OS 5.9 and the other server is an HP-UX 11i v3 and both have AR Server 7.1 patch 11 installed. Two Windows Server 2008 64 Bit R2 Enterprise Editionrunning Apache Tomcat 5.5.25 Server
*Christopher Pruitt*
Business Consulting III
*HP Enterprises Services
*_christopher.pru...@hp.com
__www.hp.com_ <http://www.hp.com/>
_/*Confidentiality Notice:*/_This message and any files transmitted with it are intended for the sole use of the entity or individual to whom it is addressed, and may contain information that is confidential, privileged, and exempt from disclosure under applicable law. If you are not the intended addressee for this e-mail, you are hereby notified that any copying, distribution, or dissemination of this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately destroy, erase, or discard this message. Please notify the sender immediately by return e-mail if you have received this e-mail by mistake. _attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to