PG0581
Apr 05, 2018Cirrus
Redirect 2 URLs to one specific pool member
I'm new to creating iRules and would like to redirect URLs containing "/abc/123/" or "/def/456/" to a pool pool_abc and the specific pool member 1.1.1.1:port
Will this work? Or am I way off?
when HTTP_REQUEST { if { ( ([HTTP::uri] contains "/abc/123/") or ([HTTP::uri] contains "/def/456/") ) } { pool pool_abc member 1.1.1.1:port log local0. "[IP::remote_addr] URI: [HTTP::uri]" }
} }