Forum Discussion
AjayPra_161698
Nimbostratus
Jan 07, 2015Http traffic redirection with irule
Scenario:
Nodes:Node1,Node2,Node3
Pool1:Node1,Node2
Pool2:Node3
Virtual Server:ABC
VIP 1.1.1.1
Port any
irule on VS
when HTTP_REQUEST {
set uagent [string tolower [HTTP::header User...
Michael_Jenkins
Cirrostratus
Jan 07, 2015Yes. The iRule will affect all http traffic (http and https both). I would also suggest changing your
if to a switch statement, since it's a little cleaner, especially if you plan to add more options in the future. (Just a thought)
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::header value User-Agent]] {
"*msie6*" -
"*msie7*" -
"*msie8*" -
"*mozilla/4.0*" {
pool pool1
default {
pool pool2
}
}
}
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