newf5learner_13
Oct 27, 2017Nimbostratus
something wrong with host header redirection irule - please correct me
Hi Experts
I'm trying to use a irule to direct the traffic to appropriate pool based on the URL Host header information. Its strange that I'm not able to browse the site though the backend server are up and reachable. If I remove the irule and choose the resource to be a pool, the site loads! I have configured this irule on F5 2600i model with software version 12.1, similar irules are working on the other model 3900 on version 11.6
A little more information: Backend servers and the VIP address are in same network 10.120.1.0/24 and also has SNAT Automap turned on!
when HTTP_REQUEST {
switch -glob [ string tolower [HTTP::host]] {
"nexustest.deccanchargers.net" { pool Pool_DATA_DC_8184 }
"nexustest1.deccanchargers.net" { pool Pool_DATA_DC_8185 }
"nexustest2.deccanchargers.net" { pool Pool_DATA_DC_8186 }
"nexustest3.deccanchargers.net" { pool Pool_DATA_DC_8187 }
default { HTTP::respond 404 noserver }
}
}
Can someone advise if there are any changes with the irule translator / compiler in the version 12.1 or something wrong with my F5 2600i platform? Please suggest.
Thanks.