D_J__Mudde_1907
Apr 06, 2016Nimbostratus
redirect 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 { if { [HTTP::host] == "linked.jan.nl" } { pool p_sfb_a } elseif { [HTTP::host] == "lyncdiscover.jan.nl" } { pool p_sfb_a } elseif { [HTTP::host] == "owas.jan.nl" } { pool p_sfb_a } else { pool Pool_none } }
Anyone a idea to help me out?
The pools are not jet in place.
This is the message i get from the big-IP when i tried to save the irule.
01070151:3: Rule [/Common/mzi_sfb_redirect_based_on_host] error: /Common/mzi_sfb_redirect_based_on_host:4: error: [undefined procedure: elseif][elseif { [HTTP::host] == "lyncdiscover.maasstadziekenhuis.nl" } { pool p_sfb_a } ]
/Common/mzi_sfb_redirect_based_on_host:10: error: [undefined procedure: else][else { pool Pool_none }]