Forum Discussion
delvinadm_21686
Nimbostratus
Feb 18, 2009URL Rewrite without Redirect
Hi everybody,
I've got a big problem, which I can't resolv.
The client types in the adressbar:
www.somesiteA.com/AAA
and the Loadbalancer should re...
Russell_E_Glaue
Nimbostratus
Feb 18, 2009Can you just set up a pool, put "www.somesiteB.com:4444" in it, and then send the web user connection to that pool with an iRule?
Create a pool with the node: www.somesiteB.com:4444
Create a virtual server that responds on an IP that the domain "www.somesitea.com" will resolve to.
Add the loadBalancingiRule iRule to this virtual server.
rule loadBalancingiRule {
when HTTP_REQUEST {
set http_host [string trim [getfield [HTTP::host] ":" 1]]
set http_host [string tolower $http_host]
if { $http_host equals "www.somesitea.com" } {
pool somesiteB_pool
return
} else {
HTTP::respond 404 content {
Not Found
Not Found
}
}
}
}
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
