Need Help to create an iRule for Name Based Virtual Hosting
We are trying to build iRule for one newly build tomcat server when the F5 picks one of the new pool members, the iRule needs to route the request, in a round robin manner, to the different instances of the application on the same VM/IP.
So for example, when picking 10.1.1.1443 it needs to then route to either 1perf.cloud123.com and 1perf.cloud123.com and so on.
VIP-PRF -> VIP
VIP-PRF _POOL -> Pool Members
10.1.1.1:0 -> Legacy
10.1.1.2:0 -> Legacy
10.1.1.3:443 -> New tomcat
1perf.cloud123.com -> Instance of the new application
3perf.cloud123.com-> Instance of the new application
10.1.1.4:443 -> New tomcat
2perf.cloud123.com -> Instance of the new application
4perf.cloud123.com-> Instance of the new application
We tried create iRules but its not allowing to create ( refering this devcentel link.:
https://devcentral.f5.com/s/articles/name-based-virtual-hosting-with-ltm)
I need your help to create iRule based name based virtual hosting on VIP
Great thanks in advance