Forum Discussion
Zabeel_101104
Nimbostratus
Mar 29, 2012url control based on requests/path
Hi,
Need some help on irules please.
We have irules defined on the F5 where the string is matched and request sent to a pool
"mywebsite.com" { pool website1 }
What I am trying to achieve is
anyone going to https://thiswebsite.com gets sent to https://thiswebsite.com/webdesktop
but if anyone types in https://thiswebsite.com/webconsole/app this gets passed along as is to the pool and everything else goes to https://thiswebsite.com/webdesktop
Regards
Zabeel.
2 Replies
- hoolio
Cirrostratus
Hi Zabeel,
I can't see how rewriting ever URI except /webconsole/app to /webdesktop would work, but here's what should do that:... "mywebsite.com" { pool website1 switch -glob [HTTP::uri] { "/webconsole/app*" { do nothing } default { Rewrite URI to /webdesktop HTTP::uri "/webdesktop" } } }
Aaron - Zabeel_101104
Nimbostratus
thanks for that I will give that a try
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects