Forum Discussion
Jonas_Isaksson_
Nimbostratus
Nov 07, 2014iRule for URI / HOST based Pool redirection. (w. option to not offload SSL).
Hello,
Both new to F5 and iRules here.
Been trying to make an iRule in an F5 BIG-IP LTM 1600 for a few days.
Started of from this one ...
when HTTP_REQUEST {
switch -glob [HTTP::path] {
...
kunjan
Nimbostratus
Nov 07, 2014The array has to be in pairs. I guess the error you are getting is from that. Instead of array you can use data groups.
If want to use array see if the following helps, using the name to get the pool name.
when HTTP_REQUEST {
array set pools {
Organisation1 Y
Organisation2 N
Organisation3 N
}
foreach {CustPath SmartCard} [array get pools "[getfield [HTTP::uri]/" "/" 2]] {
if { ($SmartCard equals "Y") }{
SSL::disable
HTTP::disable
}
pool P_APP_$CustPath
return
}
HTTP::respond 200 Content "This site does not exist."
}
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