Need to apply iRule for a VIP whose type is "Performance Layer 4" profile
Hi
I am a newbie to F5 and iRule.
One of our requirement is the url re-direction as below
www.ramkar.com/startup ==> www.ramkar.com/login
I did researched this forum and framed the following 2 iRules:
iRule-1when HTTP_REQUEST
{
if { [string tolower [HTTP::path]] equals "/login" || [string tolower [HTTP::path]] equals "/startup" }
{
HTTP::uri "/login"
}
}
iRule-2
when HTTP_REQUEST
{
if { ([HTTP::host] equals "www.ramkar.com") and ([HTTP::uri] ends_with "/startup") }
{
HTTP::redirect https://www.ramkar.com/login
}
}
The type of our VIP( was "Performance Layer 4". When checked with our IT and Network Team, they suggested to change the type to "Performance HTTP" as iRules will not work with "Performance Layer 4" type. We did this change in F5 for the VIP: www.ramkar.com. But when we tried to apply the irule-1, we are getting the error:
"01070394:3:HTTP_REQUEST event in rule (ramkar) requires an associated HTTP or ICAP profile on the virtual server (/blah/blah/"
Can any one please help me apply any one of these iRules in F5.
Please note that our Network Team advised that we should not apply Standard or HTTP profile to this F5 as it will slowdown the PROD environment.
Any help is greatly appreciated
-- K.Ramesh Karthik.