Forum Discussion
rajeshgoud
Altostratus
Mar 09, 2016maintenance page for VIP with different hosts point to different pools if available else redirect to http://$host/maintenance
when HTTP_REQUEST {
sets the timer to return client to host URL set stime 10
Check if the URI is /maintenance switch [HTTP::uri] {
"/maintenance" {
Send an HTTP 200 response with...
Stanislas_Piro2
Cumulonimbus
Mar 10, 2016Do you mean this irule ?
when HTTP_REQUEST {
Check if the URI is /maintenance
switch [HTTP::uri] {
"/maintenance" {
sets the timer to return client to host URL
set stime 10
Send an HTTP 200 response with a Javascript meta-refresh pointing to the host using a refresh time
HTTP::respond 200 content \
" \
Sorry! This site is down for maintenance." "Content-Type" "text/html"
return
}
}
If the respective pool is down, redirect to the maintenance page else
send the request to the respective pool
if { [ active_members [LB::server pool] ] < 1 } {
log local0. $host
HTTP::redirect "/maintenance?uri=[HTTP::uri]"
return
}
}
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