Forum Discussion
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"
}
}