Forum Discussion
kgaigl
Cirrocumulus
Aug 14, 2019IRule Maintenance Page only from outside
Hi, I've got an IRule with a static Maint-Page: when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
switch [HTTP::uri] {
"/mylogo.png" {HTTP::respond 20...
kgaigl
Cirrocumulus
Aug 14, 2019Hi Lee,
many many Thanks, but maybe there's some wrong braket, but I cant't figure out where:
01070151:3: Rule [/Common/MAINT_PAGE_ONLY_EXTERN] error: /Common/MAINT_PAGE_ONLY_EXTERN:8: error: ["unexpected end of arguments;expected argument spec:equals"][IP::addr [IP::client_addr]]
- Lee_SutcliffeAug 14, 2019
Nacreous
Sorry, my mistake - there is a missing closing square bracket, try replacing the 'if' statement on line 8 with the following
if {!([class match [IP::addr [IP::client_addr]] equals "private_net"])} {
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