Forum Discussion
Jon_46044
Nimbostratus
Oct 02, 2007Need help with iRule for redirect removal
Our site currently works that it sends users to specific servers using explicate www DNS entries. We'd like to move all servers onto a private network behind the F5 LTMs and only have users log into ...
Patrick_Chang_7
Oct 02, 2007Historic F5 Account
What you really want is an iRule that choose the back end server appropriately according to something that your application can cause the user to send out.
In the example below, the application is sending out a cookie called trueServer that tells us the real server we want to connect to. In order to make this simpler, each server is in a pool of 1 (named after the name of the server).
when HTTP_REQUEST {
switch [HTTP::cookie value "trueServer"] {
www1 { pool www1 }
www2 { pool www2 }
www3 { pool www3 }
www4 { pool www4 }
default { pool default_pool }
}
}
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