Forum Discussion
almudena_3796
Nimbostratus
Sep 11, 2013LTM VE 10.2.3: HTTP::uri
Hi everyone, My BIG-IP LTM VE has 10.2.3 version. I have created an irule, and a part of the code is:
switch -glob [HTTP::uri] { "/cm/" { set SELECTED_POOL "LPAGE_ALERTAS"
} "/delivery/imanager" { set uriN [findstr $uriM "/delivery" 9]
HTTP::uri $uriN set SELECTED_POOL "LPAGE_DELIVERY_CMP" } "/delivery/wifi" { set uriN [findstr $uriM "/delivery" 9] HTTP::uri $uriN
set SELECTED_POOL "LPAGE_DELIVERY_CMP" }
"/delivery" { set SELECTED_POOL "LPAGE_DELIVERY_CMP" } default {
HTTP::respond 403
}
}
I am not sure if this is correct: HTTP::uri $uriN Can a variable ($uriN) be assigned to HTTP::uri? It seems it does not work. Thx in advance.
13 Replies
- almudena_3796
Nimbostratus
thanks again.
- StephanManthey
Nacreous
And don´t forget turning off loggin when going into production ... ;)
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