Scott_82463
May 24, 2011Nimbostratus
Simple "Hello World" iRule
I'm really new to F5 and iRules and I'm having trouble setting up a simple "Hello World" iRule.
Here's the iRule I tried:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/mytest" } {
set response "Hello World"
HTTP::respond 200 content $response "Content-Type" "text/xml"
}
}
To see if it's working, I've tried the following URLs:
http://[ip]/mytest
https://[ip]/mytest
Neither of the URLs seem to do what I want them to do, which is to simply display "Hello World." Am I doing something wrong, or is my problem in some other configuration in my F5?
Thanks!