Forum Discussion

Manoj_129792's avatar
Manoj_129792
Icon for Nimbostratus rankNimbostratus
Nov 04, 2016

need help to write an IRULE.

Hello All,   I have two vips configured 148.x.x.228:443 and 148.x.x.228:80.   with 148.177.29.248:80 Irule "when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri] }" associated to r...
  • Samir_Jha_52506's avatar
    Nov 04, 2016

    Try this irule. Hope it will work as per requirement.

    when HTTP_REQUEST { 
    if { [active_members [LB::server pool]] == 0 } { 
                    HTTP::redirect "https://order360.jnjgateway.com/eIFU/CustomError.html" } 
        else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
    }