Forum Discussion
jerm1020_254086
Aug 04, 2016Nimbostratus
irule maintanance page issue
Can anyone out there tell me what could be wrong with this code for an irule to reference HTML for a maintance splash page? when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } {
...
Kai_Wilke
Aug 04, 2016MVP
Hi Jerm,
I've correctly formated the code and found a missing closing braked at the end...
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
check if client access from internal subnet
if { [IP::addr [IP::client_addr]/8 equals 10.0.0.0] } {
pool alternate_pool
} else {
HTTP::respond 200 content { Sorry Page Sorry, The website is not available. Please try again later } noserver "Content-Type" "text/html"
}
}
}
Cheers, Kai
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