Forum Discussion
Irules and host headers to conserve IP addesses
we have multiple web servers, that are in LTM pools. Currently to get access to these we use a public IP mapped to a VIP, for each web server. How do we use host headers and i rules to map one public IP, and use multiple wide IPs, and they redirect to the correct web servers.
1 Reply
- Jason_40733
Cirrocumulus
If I'm reading this right... you want to use a single IP on an LTM to redirect to the correct pool of web servers based off the URI. E.G. www.abc.com and www.def.com both resolve to 10.10.10.10 on the LTM, but each would go to a different pool of web servers behind the LTM.
You can use an iRule with a switch statement. Based off the URI strings you can re-direct to specific pools.
https://devcentral.f5.com/articles/irules-101-04-switch
However, for performance select the right iRule Control statement and the order of the options correctly.
https://devcentral.f5.com/articles/comparing-irule-control-statements
Jason Peak
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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