Forum Discussion
Ammar
Nimbostratus
Mar 26, 2022TCL error redirect if active_members == 0
Dear when HTTP_REQUEST { switch -glob -- [string tolower [HTTP::path]] { "/dashboard/*" { ## dashboard if { [active_members dashboard] == 0 } { log local0. "Pool dashboard donw" HTTP::r...
MaximP
Cirrus
Mar 30, 2022It should work like this, without partition reference in pool name
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"/dashboard/*" {
## dashboard
if { [active_members dashboard] == 0 }
{
log local0. "Pool dashboard donw"
HTTP::redirect "https://example.com"
}
pool dashboard
persist cookie insert
}
default {
reject
}
}
}
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