It's starting to - however the /error directory (and the if statement for the error_condition) is now confusing me - where does that /error supposed to exist?
I think I'm getting there following all your steps:
when RULE_INIT {
set ::polr_html {All Servers Down}
}
when HTTP_REQUEST {
if {[active_members myPool] == 0}
if {$error_condition==1} {
The error condition was true, so respond back to client from the iRule
switch [string tolower [HTTP::path]] {
/error/image.png {
HTTP::respond 200 content [b64decode [lindex $::logo_png_class 0]] "Content-Type" "image/png"}
default {
HTTP::respond 200 content $::polr_html
}
}
}