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
node2.privatesystem.com
node3.privatesystem.com
How do i redirect http://www.privatesystem.com to the nodes
while maintaining the URL http://www.privatesystem.com in the users browser and at the same time append /myapplication/index.jsp to the URL? Ive setup all the virtual servers needed. I need
to cloak the real hostname for the real server nodes with
the main http://www.privatesystem.com URL.
2 Replies
- Chad_Roberts_21
Nimbostratus
fazli,
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). - Ahmad_Fazli_Adh
Nimbostratus
Hi,
They all expect www.privatesystem.com. We need to hide the real server name.
We need to append the URL if the user does not specify a URL.
Exactly, i've tried that code for the URL appending. It works.
Thanks! :-)
But what about the first question? That one im still searching. How to mask the real server name with http://www.privatesystem.com.
thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
