Forum Discussion
marco_octavian_
Nimbostratus
Scratch that first irule. It was untested and has flaws. I agree with Jie about the no-cache. Give this one a try.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 400 content "
Bad Request page
400 - The request could not be understood by the server due to malformed syntax.
" Cache-Control No-Cache Pragma No-Cache"
}
}
hooleylist
Sep 05, 2013Cirrostratus
Nice solution Marco. You could replace the ""s with {} around the content to avoid having to escape any meta-characters in the fuller HTML that an admin might use: HTTP::respond 400 content {...} header1 value1 headerN valueN