Forum Discussion
skravens_86061
Jan 21, 2011Nimbostratus
adding a redirect to a maintenance page HTML code
Can you place "another" redirect inside the HTML code of a Maintenace page? This page goes up when the servers are not available, then after 10 seconds or so it redirects to a different IP or server. ...
Chris_Miller
Jan 31, 2011Altostratus
The rule below will check whether there are any active members in the DMX-Pool. If there are none, it'll redirect to http://192.168.xxx.x/ after holding the user at the maintenance page for 10 seconds.
when HTTP_REQUEST {
if { [active_members DMX-Pool] < 1 } {
set dtime 6
HTTP::respond 200 content \
"Apology page\
We are sorry, but the site you are looking for is temporarily out of service." "Content-Type" "text/html"
}
}
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