Forum Discussion
Rich_L
Nimbostratus
Apr 06, 2017iRule not going to pool
I have an iRule that if the HTTP::header User-Agent contains "iPhone", and if the HTTP::URI contains "INV", then I want it to go to a specific pool. If the iPhone tries to access any other URI on th...
Jinshu
Cirrus
Apr 06, 2017Hi, Can you try below one..
when HTTP_REQUEST {
if {([HTTP::header User-Agent] contains "iPhone") or ([HTTP::header User-Agent] contains "iPod")} {
if { ( [string tolower [HTTP::uri]] contains "lead" ) or ( [string tolower [HTTP::uri]] contains "inv" ) } {
pool vspool
} else {
HTTP::redirect "http://www.mysite.com"
}
}
}
-Jinshu
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