Forum Discussion
Ahmad_Fazli_Adh
Nimbostratus
Nov 23, 2006redirect to Oracle Application Server (OC4J) Cluster
I've main url http://www.privatesystem.com which is
loadbalanced to a number of server nodes.
Each nodes contain their own hostname eg:
node1.privatesystem.com
...
Chad_Roberts_21
Nimbostratus
Dec 02, 2006fazli,
First, are you saying that each node is expecting to see its own hostname as the host in the URL? In other words, if you are load balancing between those three nodes and send the traffic to node1, does the hostname in the URL need to be node1.privatesystem.com, or will they all expect www.privatesystem.com? It doesn't sound to me like the unique name needs to be in there, but please correct me if that is not the case.
Second, do you really mean you would like to append "/myapplication/index.jsp" to every URL, or do you simply want that to be the request that the server receives any time the user does not specify a URL?
For the sake of getting you started, I'm going to assume those things above. What you need is a pool pointing to all 3 of those nodes on their respective listening ports, and you'll need an iRule similar to the following:
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/") } {
HTTP::uri "/myapplication/index.jsp"
}
}
Note that using "HTTP::uri" and a path rather than "HTTP::redirect" means the path is changed before it is served to the server, rather than a redirect being sent to the user and having them re-request with the correct path (which would work as well).
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects