Forum Discussion
SP_SINGH_279526
Nimbostratus
Aug 25, 2016IRULE for Maintenance page
For my client there is 3 Portal behind virtual server.
Whenever client manually down any of the portal , that portal generate error 500. Other 2 portal works fine at the same time.I am looking to iRu...
Stanislas_Piro2
Cumulonimbus
Aug 25, 2016Hi,
can you test this irule:
when HTTP_REQUEST {
if {([HTTP::uri] starts_with "/portal/sfx")} {
set responsepage [ifile get stibo_SFX]
} else {
set responsepage [ifile get stibo_all_opco]
}
if {([active_members [LB::server pool]] < 1) } {
HTTP::respond 200 content $responsepage
}
}
} when HTTP_RESPONSE {
if {[info exists responsepage] && ([HTTP::status] == 500) }{
HTTP::respond 200 content $responsepage
}
}
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
