Forum Discussion

adrian_171483's avatar
Jan 12, 2015

will this irule work?

Need a rule to do this :

 

client comes into the VS with "/admin" in the URI.. if they have /admin then want to be redirected to come back with /someother/index in the URI and drop into the ADMIN POOL (retaining the hostname)

 

if they dont have it, then drop to MY-OTHER-POOL

 

when HTTP_REQUEST { if {[HTTP::uri] contains "/admin"} {HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/someother/index" } if {[HTTP::uri] contains "/someother/index"} pool MY-ADMIN-POOL } else {pool MY-OTHER-POOL} }

 

17 Replies

    • Michael_Jenkins's avatar
      Michael_Jenkins
      Icon for Cirrostratus rankCirrostratus
      can you post your config for the pool and VS? from the cli you can do "tmsh list ltm pool POOL_NAME" and "tmsh list ltm virtual VIRTUAL_NAME" just to see.
  • anyway to get this via the GUI.. i typed tmsh from the ssh.. but not getting into the mode for some reason..