Forum Discussion
ra3ac_138315
Nimbostratus
May 10, 2014LTM - load balancing to the same web server
Hi,
I'm hoping someone has had the same scenario.
We have two identical web servers. The web servers host multiple sites which uses the same IP and a URL to differentiate the pages. I hav...
Henrik_Gyllkran
Nimbostratus
May 10, 2014No, the second part is an addition to the iRule. So the entire iRule would look something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/app1*" {
if { [active_members app1_pool] < 1 } {
HTTP::respond 200 content "HTML maintenance page content"
} else {
pool app1_pool
}
}
"/app2*" {
if { [active_members app2_pool] < 1 } {
HTTP::respond 200 content "HTML maintenance page content"
} else {
pool app2_pool
}
}
}
}
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