Antony2015
Jun 02, 2015Altostratus
HTTP:: redirection is not working in iRule
I am using 443 VIP with SSL offloading/http profle enabled. It matches all the conditions in the below irule except http::redirect condition.
could you please let me know what is the reason why the redirection is not working on iRule ?
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "x.y.com" } { pool x-pool } elseif { [string tolower [HTTP::host]] equals "xdev.y.com" } { pool xdev-pool } elseif { [string tolower [HTTP::host]] equals "xuat.y.com" } { pool xuat-pool } else { HTTP::redirect http://1.1.1.1:65535/ } }
Any help would be highly appreciated !