Forum Discussion
strain17
Oct 03, 2016Nimbostratus
karthik,
If I understand you correctly, I think you are trying to route by HTTP host. If so, you'll have to use [HTTP::host] instead of [HTTP:uri].
when HTTP_REQUEST {
if {[HTTP::host] contains "siteA.domain.com"} {
log local0. "SiteA Access" virtual vs_SiteA_prod
}
}
See the following: https://devcentral.f5.com/wiki/iRules.HTTP__host.ashx