Forum Discussion
Gill_32697
Oct 23, 2012Nimbostratus
Need redirect irule help please !
I need a redirest irule, I can not use http class.
The developer only want the irule to act on the specifc uri path and send to pool1, any other uri path or no uri path at all goes to pool2. ...
- Oct 23, 2012
Correct, add another line after the first one. THe new line would look like
Pconlan_71037
Oct 23, 2012Altocumulus
Here is how I do it.
------------------------------
when HTTP_REQUEST {
use tolower to make the match case-insensitive
switch -glob [string tolower [HTTP::path]] {
"/akcelerant/" -
"/idsakcelerant/" -
"/idsakcelerantmtg/" -
"/lmakcelerant/" {
pool pool1
}
default {
pool pool2
}
}
}
----------------------------------------
If you want all sub-uri's below the specified uri's to go to pool1 as well, then add a * at the end of each one, like "/akcelerant/*".
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