jholmes_39917
Jun 25, 2012Nimbostratus
URI client IP redirect
I am new to this group and irules so bare with me here. What I have is a site whos owners want a redirect to happen based on client ip range, and URI.
Example of what I have so far:
when HTTP_REQUEST{
log local. "Client: [IP::client_addr]"
if { [HTTP::uri] starts_with "URI" }{
if { [IP::addr [IP::client_addr] equals X.X.X.X/X] } {
pool blah }
elseif { [IP::addr [IP::client_addr] equals X.X.X.X] } {
pool blah }
}
}
This doesnt appear to work and was hoping someone could give me some pointers on getting this accomplished.