Also for reference, there a subtle inference in the documentation for Host/URL switching that says you can only use either host switching or url switching in an http template…not both. So if you are using http template for host switching, then you’ll have to use the aflex provided to do url switching.
You can configure an HTTP template with one of the following service-group switching options: • URL switching – Selects a service group based on the URL path in the GET line of the HTTP request’s header • Host switching – Selects a service group based on the domain name in the Host field of the HTTP request’s header