Forum Discussion
fasteddye
Nimbostratus
Mar 11, 2014Braces are required around expression when HTTP_REQUEST
We have BigIP LTM 10.2.4 HF3. We are trying to test having an iRule help with web site down/maintenance window messages. When attempting to create the iRule below I receive, 01070151:3: Rule [Mainten...
JRahm
Admin
Mar 11, 2014you would want a fully compliant html page there complete with tags. Most use iFiles, which of course are not yet available to you on your version, but you can put the html in a variable in RULE_INIT.
when RULE_INIT {
set static::sorry_page "..."
}
when HTTP_REQUEST {
if { [active_members Test_Pool] < 1 } {
HTTP::respond 200 content $static::sorry_page Cache-Control "no-cache" Pragma "no-cache"
}
}
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