Vitor_Hugo_Domi
Jan 15, 2016Nimbostratus
Doubt about irule - [HTTP::uri]
Hi all,
I need to help me for verification my irule if it is correct? when I receive anyway URI I need to verify the pool_YYYY the stats, if went ok, he goes to pool_XXXX. Else he changes the URI (*) and redirect to pool_ZZZZZZZ with the /test/ URI.
My doubt is if can I put URI the "*" parameter in the HTTP::uri?
when HTTP_REQUEST { [HTTP::uri] "/" { if { [active_members - list pool_YYYY] > 0 } { pool pool_XXXX } else { HTTP::uri [string map { / /test/ } [HTTP::uri]] pool pool_ZZZZZZZ } }