collinz1_17223
Jun 06, 2011Nimbostratus
irule active_members <1 and MSIE 7
I have an irule that returns HTML when all pool members are down, this works fine, hower what i now want to do is return different HTML if users are using IE7. It would be great to be able to return differnt HTML for multiple other browsers (IE6 & IE7) also.
when HTTP_REQUEST {
if { ([active_members [LB::server pool]] < 1) and ( [string tolower [HTTP::header User-Agent]] eq [string tolower "*msie 7.*"])} {
HTTP::respond 200 content {
...
elseif { [active_members [LB::server pool]] < 1} {
HTTP::respond 200 content {
...