Forum Discussion
pponte
Jun 12, 2017Altostratus
Switch option always matches on default
Hello everybody.
I have one question which probably for some people should be something simple, but I have spent a few days on a lab environment and studying a lot, with no succesfull results.
I need...
Stanislas_Piro2
Jun 12, 2017Cumulonimbus
Hi,
I think you want to include the first condition in the switch command:
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"/pf*" {
HTTP::uri [string map {"/pf/" "/PF/"} [HTTP::uri]]
pool Pool_apache_lab
}
"default" {
HTTP::respond 200 content {Default switch}
}
}
}
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