Forum Discussion
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
yep the direct to the server works..
- Michael_Jenkins
Cirrostratus
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..
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com