Forum Discussion
D_J__Mudde_1907
Nimbostratus
Apr 06, 2016redirect to specific pool based on host
Hi,
I am looking for a Irule to redirect trafic to a specific pool based on the incomming http request host.
I have made the following but the Big IP gaves an error.
when HTTP_REQUEST ...
Stanislas_Piro2
Cumulonimbus
Apr 07, 2016As proposed by jgranieri, the easiest and best solution is to use Local traffic policies.
If you want to use irules, the switch command is better than if / then / elseif / elseif ...
when HTTP_REQUEST {
switch [HTTP::host] {
"linked.jan.nl" { pool p_sfb_a }
"lyncdiscover.jan.nl" { pool p_sfb_b }
"owas.jan.nl" { pool p_sfb_c }
default { pool Pool_none }
}
}
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