Forum Discussion
Vikneswaran_709
Aug 26, 2015Nimbostratus
Maintenance Page using irule
Hi All,
When a request hits the virtual server (HTTPS or HTTP), it should load the customized Maintenance Page irrespective of Pool member status. The maintenance page is a html file which i hav...
Kevin_Stewart
Aug 26, 2015Employee
That isn't going to work. Your best bet is to add your HTML page as an iFile:
https://devcentral.f5.com/wiki/iRules.iFile.ashx
Then your iRule might look something like this:
when HTTP_REQUEST {
Retrieve the file contents, send it in an HTTP 200 response and clear the temporary variable
set ifileContent [ifile get "/Common/iFile-index.html"]
HTTP::respond 200 content $ifileContent
unset ifileContent
}
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