GwIDsON
Dec 21, 2020Nimbostratus
F5 LTM - iRule that will replace the host, remove the path and send traffic to the specific pool
Hi,
I have a standard VIP on port 443 with SSL client and servers side profile and some pool on port 443 as well.
What I need to implement on that VIP is: when the path begins with /VPC ( for example https://example.com/VPC) the host name (example.com) needs to be replaced by (example2.net) and path /VPC needs to be removed. After that this traffic (https://example2.net/) needs to be send to the specific pool (different than default but also on port 443). I suppose the iRule is the best option here. Unfortunately I cannot make simple 302 redirect...
Of course if the URI does not begin with /VPC the traffic needs to go to the default pool.
I found some similar cases on devcentral however neither of them match all the requirements.