Forum Discussion
P_Kueppers_3614
Nimbostratus
Oct 22, 2018Bug in VS redirect with HTML iRule?
Hi,
we use the iRule for serving "Error 503 Service Unavailable" HTML page. In all virtual servers we got this iRule which is triggered if the pool is down. This works quite well in all browsers...
P_Kueppers
MVP
Oct 22, 2018when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
log local0. "Client [IP::client_addr] requested Host: [HTTP::host] with URI: [HTTP::uri] accessed [virtual] but no active nodes available..."
switch [HTTP::uri] {
"/Logo.png" {
HTTP::respond 200 content [ifile get "Logo.png"] "Content-Type" "image/png" "Cache-Control" "no-cache, must-revalidate"
}
default {
HTTP::respond 503 content {
Error 503 Service Unavailable
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
}
}
}
}
}
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
