Forum Discussion
The_Bhattman
Jul 21, 2011Nimbostratus
Hi Michael,
I don't believe this will work if I understand your question properly. Hopefully if I do I understand this properly you want to send traffic to pool IESDWEB_HTTP_81 if the URI starts with /DATA/ string, but then to direct them to URI "/" when you send them to the pool else send them to alternate pool.
You could then rewrite this as
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/data/*" { HTTP::uri "/" pool IESDWEB_HTTP_81 } default { pool IESDWEB_HTTP } } }
I choose to use switch statement because in the grander scheme is more efficient then IF-ELSE statements when doing the same comparisons.
I hope this helps
Bhattman