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?
Thanks,
BR,
Erik
- The_Bhattman
Nimbostratus
Hi Erikwhen 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 } } }
- hoolio
Cirrostratus
Just a small note: if the User-Agent header contains the version as part of the string, you'd want to add wildcards to the switch cases: - Eridano_Di_Piet
Nimbostratus
Hi, - hoolio
Cirrostratus
Hi Erik,
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