Forum Discussion
Srinivasan_G_31
Nimbostratus
Oct 04, 2013Maintenance Page redirect
Hi Friends, Is there a way i can accomplish the following thing? Once i hit the Virtual server IP, i should first get directed to an informational page which talks about the upcoming maintenance acti...
Kevin_Stewart
Employee
Oct 04, 2013Borrowing from the listed exampled, it might look something like this:
when HTTP_REQUEST {
set mainttime "10:00pm Eastern"
if { not ( [HTTP::cookie exists "maintbanner"] ) } {
HTTP::respond 200 content "Maintenance AlertThis site will be going down for maintenance at $mainttime. Please complete your session and logoff before then." "Content-Type" "text/html" "Set-Cookie" "maintbanner=1"
}
}
I'm setting a cookie in the maintenance splash page, so that after the refresh it'll bypass this for the rest of the session.
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