It is a weird requirement 🙂 So the pool members this traffic is being sent to is setup on a proxy server:
1.1.1.1 is configured with a vhost and would proxy you to 3.3.3.3:443
2.2.2.2 is configured with a vhost and would proxy you to 4.4.4.4:443
We wanted to use 1.1.1.1 and 2.2.2.2 as the pool members, but, the way the user had this set up was if you navigated to the IP of the server for example:
https://1.1.1.1
https://2.2.2.2
This would take you to the default webserver and not to the hosts we wanted to connect to; being 3.3.3.3 and 4.4.4.4. The way they had this configured was to reach it by FQDN and also wanted it load balanced.
Hopefully I explained that so it makes some sense 🙂 and thanks for your solution. They wound up changing some things on the server side so we thankfully don't need to use an iRule.