Forum Discussion
Ravi_Rajan_7549
Nimbostratus
Oct 14, 2008Need help on irules
Hi,
Currently i have a setup as below -
VS IP - 10.2.3.2 (test.xyz.com)
Pool Member 1 - 192.168.10.2 (server1.xyz.com)
Pool Member 2 - 192.168.10.3 (server...
hoolio
Cirrostratus
Oct 14, 2008Hi Ravi,
You can get the selected pool member in (or after) the LB_SELECTED event using LB::server. You can modify the HTTP headers just before the request is sent to the pool in HTTP_REQUEST_SEND using 'clientside {HTTP::header replace Host "newhost.example.com"}.
It would probably make sense to create a string datagroup with the IP addresses and hostnames. You could then use findclass to get the hostname for the selected server.
There is a related example in this post (Click here).
Reply here if you get stuck.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
