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...
delvinadm_21686
Nimbostratus
Feb 19, 2009Hi rglaue,
thank you for your suggestion. But this won't work I think, because the Client would "see" the change... there is an reconnect happening, or am I wrong?
In the end, there will be one SSL connection to somesite.com with just one SSL-certificate (which signed somesite.com) and the iRule should get the application content from othersite.com. So the loadbalancer may not redirect to an other adresse, because the SSL-tunnel would be dropped. But thank you for your advise!
Posted By rglaue on 02/18/2009 12:16 PM
Can 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
