Forum Discussion
tkancianich_925
Nimbostratus
Nov 03, 2008Having issues converting 4.5 irule to v9.3
Not real familiar in creating or manipulating irules. Any assistance would be grateful & much appreciated ,thank you for taking a look!
Here is the rule I need to put on my v9.3 LTM:
...
hoolio
Cirrostratus
Nov 03, 2008This should be equivalent for 9.x:
when HTTP_REQUEST {
if {[HTTP::uri] contains ".nyk"}{
HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html"
} elseif {http_uri contains ".nyks"}{
HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html"
} else {
pool pSidewinderNAT.80
}
}
You could also replace the if/elseif/else with a switch command:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*.nyk*" -
"*.nyks*" {
HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html"
}
default {
pool pSidewinderNAT.80
}
}
}
Aaron
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
