Forum Discussion
MrGlass_204919
Nimbostratus
Sep 01, 2017HTTP REQUEST - Some Assitance
Hi Folks,
I currently have an irule that is redirecting extensions behind the business/portal to a pool.
when HTTP_REQUEST {
log local0. "Request: [HTTP::uri]"
switch -glob [string tol...
Stanislas_Piro2
Cumulonimbus
Sep 01, 2017Hi
switch does not support multiple condition.
You have to do that:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/busines/portal.*html" {same action than default}
"/business/portal.*" {
other actions
}
default {actions}
}
}
or you use if / then / elseif / else
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
