Irule is not working. KIndly help.
I have a vip with below are the 2 irules confirgured for redirecting to different pools. The irules are not working when url is tried with htt://abc.com/socket.io. Please correct if irules.
irule 1:
when HTTP_REQUEST { set hostname [string tolower [HTTP::host]] set tops_uri [string tolower [HTTP::uri]] if { $hostname contains "topssit" } { pool topssit-http } if { ($hostname contains "topsstg") && ($tops_uri starts_with "/socket.io")} { pool topsstg-socket-pool } if { $hostname contains "topsstg" } { pool topsstg-pool } if { $hostname contains "topstrg" } { pool topstrg-pool } if { $hostname contains "topsfat" } { pool topsfat-prod-pool } }
Irule 2 called in vip Name:Tops url redirect
when HTTP_REQUEST { if {([HTTP::uri] equals "/") || ([HTTP::uri] equals "/tops")}{ HTTP::redirect "http://[HTTP::host]/tops/" } }