Forum Discussion
Domai
May 16, 2014Altostratus
when HTTP_REQUEST { if {[HTTP::uri] equals "training"} { pool pool_training } elseif {[HTTP::uri] equals "testing"} { pool pool_testing } elseif {[HTTP::uri] equals ""} {pool pool_prod} else {discard} }
Are u saying you have something similar like above and it does not work. I may be formatting the above iRule incorrectly so please check the syntax and also if any user comes in with any other uri other that you mentioned the connection will be dropped. You can also use a switch statement to do the above.
Why are you rewriting the uri...I did not understand am I missing something. Please let me know.