Patrick_Stiever
Sep 09, 2011Nimbostratus
iRules amatuer What does this iRule do?
Hello all,
I do not have much experience with iRules, and I am hoping some here can give me an idea what this iRule is doing:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/onlineserv/HB" ||
[HTTP::uri] starts_with "/beta/HB" ||
[HTTP::uri] starts_with "/preprod/HB" }
{
Lookup the host based on the HTTP host header
log local0. "host = '[HTTP::host]'"
set ibHost [class lookup [HTTP::host] $::USP_IB_REDIRECT_DG]
if { $ibHost != "" }
{
log local0. "ibHost found: '$ibHost'"
node $ibHost
}
else
{
log local0. "ibHost not found"
HTTP::respond 404
}
}
else
{
SSL::disable serverside
}
}
Thank you.