Forum Discussion
djcuts_160755
Nimbostratus
Dec 09, 2014Redirect to pool and remove path
Hi
Hi
I written a rule that checks if members of a pool are down, and if so direct to a pool with a server that is hosting a holding page.
If not, and the members are up, it goes to the origin...
nitass
Employee
Dec 09, 2014HTTP::path [string map { /* / } [HTTP::path]]
you cannot do that because it will change all the path of maintenance page objects such as image, css, etc.
you may try something like this.
e.g.
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
switch [HTTP::path] {
"/f5.gif" {
pool maint
}
default {
HTTP::uri /
pool maint
}
}
}
}
}
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