dd007_132137
Aug 23, 2013Nimbostratus
Updating iRule doesn't reflect immediately?
Hi,
I am new to F5 and iRules world and I was trying some very basic iRule (copied below) that should redirect traffic to some website.
when HTTP_REQUEST {
if {([string tolower [HTTP::host]] equals "myservice.api.abcd.com")} {
HTTP::redirect "https://google.com"
}
}
I am glad this worked but now when I try an example like below or even if I comment out the redirect with , it still redirects :(
when HTTP_REQUEST {
if {([string tolower [HTTP::host]] equals "myservice.api.abcd.com")} {
HTTP::respond 200 content "
<html><head>
<style type=\"text/css\">
a { text-decoration:none }
a:visited { text-decoration:none; }
a:active { text-decoration:none; }
a:hover { text-decoration:none; }
</style>
</head>
<body link=\"blue\" alink=\"blue\" vlink=\"blue\">
<body>
<H2>helloz</H2>
</body></html>
"
}
}
Does it take a while to actually reflect these changes or come in effect or am I doing something wrong? Please help.
Thank you.