julian_mata_164
Sep 02, 2015Nimbostratus
URL_Rewrite iRule Help!
So I have the following iRule in place and and would like to modify it so I won't have hard coded values in there. I really don't want to create 50 irules with different pool member names. Is there an easier way maybe a some variable?
when CLIENT_ACCEPTED {
Save the name of the VS default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/cardonfile"} {
Update the location in the header, change SSL "Server" profiles and target the correct pool
HTTP::header replace Location "[HTTP::uri]"
SSL::session invalidate
set cmd "SSL::profile /Common/Test"
eval $cmd
pool **AIB_126_CardOnFile** <------------
SSL::renegotiate
} else {
pool $default_pool
}
}