Forum Discussion
Eridano_Di_Piet
Nimbostratus
Aug 13, 2009Load Balancing WAP according to version
Hi all,
I need to load balance traffic going to Wap Gateways according to the WAP version (1.X or 2.0) of the request.
Is it possible to create an iRule (or something) on LTM do so?
...
The_Bhattman
Nimbostratus
Aug 13, 2009Hi Erik
Very possible. The irules that you right up must at the HTTP Headers and see which header would responsible for telling the WAP version.
I.E.
when HTTP_REQUEST {
if { ([HTTP::host] equals "www.domain.com" ) and ([HTTP:uri] equals "someuri/goeshere") } {
switch -glob [HTTP::header "User-Agent"] {
"1.x" {
pool pool_wap_gateway1
"2.0" {
pool pool_wap_gateway2
}
"3.0" {
pool pool_wap_gateway3
}
}
}
Of course this is untested and I wasn't too sure about user-agent being the place where WAP version is contained. However, I think it's going to get you much closer to your goal.
I hope this helps
CB
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