Forum Discussion
mbamusa_59409
Sep 02, 2013Nimbostratus
irule to distribute based on user agent
Hello ;
could you please help me creating irule to send traffic to specific pool if its comes from IE6,7 and 8 and rest to default pool .
Your kind assistance is highly appreciated.
mb...
nitass_89166
Sep 02, 2013Noctilucent
e.g.
Virtual server with multiple pools - distribute based on browser types
https://devcentral.f5.com/questions/virtual-server-with-multiple-pools-distribute-based-on-browser-types
- mbamusa_59409Sep 02, 2013Nimbostratusthank you for your reply . i created the following (can we combine the first 3 conditions in 1 using OR). when HTTP_REQUEST { if {[string tolower [HTTP::header User-Agent]] contains "msie6" }{ pool Pool1 } elseif {[string tolower [HTTP::header User-Agent]] contains "msie7" }{ pool Pool } elseif {[string tolower [HTTP::header User-Agent]] contains "msie8" }{ pool Pool1 }else { pool Pool2 } }
- nitass_89166Sep 02, 2013Noctilucentyou can use "or" e.g. if { [...] or [...] or [...] } {
- mbamusa_59409Sep 02, 2013Nimbostratuswill this work ? when HTTP_REQUEST { if {[string tolower [HTTP::header User-Agent]] contains "msie6" or "msie7" or "msie8"}{ pool Pool1 }else { pool Pool2 } }
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