Forum Discussion
justinhamlin_14
Nimbostratus
Aug 25, 2017If / else not working
BigIP v11.5.1
Attempting to write an irule that redirects to different pools based on URI - super basic, but for some reason when adding the rule into the LTM console, it errors out when using ELSE...
Stanislas_Piro2
Cumulonimbus
Aug 25, 2017Hi,
this kind of error appears when there is issue with missing space between curly brackets or something like that. thy this!
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/loyaltyapi" } {
pool rcv100crw-pool-http
} else {
pool $default_pool
}
}
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