Forum Discussion
Mark_Porter_979
Nimbostratus
Oct 12, 2005Percent character encoding and irules
I have an irule that looks at the request_uri to determine which pool to use:
if (http_uri matches_regex "/[Vv][Ee][Nn][Dd][Oo][Rr]_[Mm][Gg][Tt]") {
use pool lm-pmweb-2k3
}
...
Colin_Walker_12
Oct 14, 2005Historic F5 Account
I'd suggest making a change like:
if (http_uri matches_regex "/[Vv][Ee][Nn][Dd][Oo][Rr].*[Mm][Gg][Tt]") {
use pool lm-pmweb-2k3
}
else {
use pool lm-web-prod
}This would match vendor and mgt, regardless of what seperated them.
You could, of course, make a more strict version to only match a certain number of characters if you so chose.
-Colin
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
