DarkSideOfTheQ_
Jan 23, 2009Nimbostratus
irule to return status code
I'm still learning here, so bear with me. I am trying to write an irule that will catch requests trying to pull content from a specific set of hosts (ex. myserver1.domain.com, myserver2.domain.com, myserver3.domain.com) and return a 200 status code.
Here is what I have put together, but I'm not sure what I have wrong.
when HTTP_REQUEST {
if { [HTTP::uri]} contains 'myserver' [HTTP::respond 200]
}
TIA,
DarkSide