Forum Discussion
Adam_409
Nimbostratus
May 23, 2011Webpage Under Maintenance
Dear Experts,
We are going to remove the existing two virtual servers(with the same ip but for HTTP and HTTPS services).
And we are creating two new virtual servers(with the same ip as old virtual servers) and putting the the two new nodes on it for HTTP and HTTPS services.
Pls see the attachment for your reference.
During this change activity our Server team want to get the message "Webpage is under maintenance" on the web browser when the users try to access the HTTP and HTTPS services.
Could you pls let me know if LTM itself have the capability to send a "Webpage is under maintenance" message when the users who try to access the webpage?
If so could you pls let me know how we can achieve it. Could you also pls share the configuration for the same.
Thank you!
7 Replies
- Adam_409
Nimbostratus
Dear Experts,
Could you pls some one help me out on this?
We will be doing maintenance in 2 hours.
Thank you! - hoolio
Cirrostratus
Hi Adam,
Which LTM version are you running? Do you want to serve pure HTML or images as well for the maintenance message?
For the former, you can use HTTP::respond to send some HTML:
http://devcentral.f5.com/wiki/default.aspx/iRules/http__respond
For the latter, you can use an iRule and datagroup. You can look for "maintenance" in the Codeshare for examples:
http://devcentral.f5.com/wiki/default.aspx/iRules/codeshare
Aaron - Adam_409
Nimbostratus
Hi Aaron,
Thank you for your response.
I m running 10.0.1 version.
I m poor in iRules.
Could you pls give me the iRule code?
Best Regards, - hoolio
Cirrostratus
Do you want LTM to send just HTML code for the maintenance page? Or do you want LTM to also send images?
Aaron - Adam_409
Nimbostratus
Dear Aaron,
Just I would like LTM to send HTML code for the maintenance page.
Best Regards, - Adam_409
Nimbostratus
Can someone help with the iRule code? - Michael_Yates
Nimbostratus
This is a simple page to do what you are asking for:when HTTP_RESPONSE { HTTP::respond 200 content "Site unavailable System Maintenance NOTICE: This site is down for maintenance. " }
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
