Forum Discussion
siyadh_121603
Nimbostratus
Jan 22, 2015Multiple Domain with same VIP & same Back-end server with different port.
domainA.com domainB.com
we need to have redirection to pool as below:
when domainA.com then request need to go to poolA:8090 when domainB.com then request need to go to poolA:7002
can we do this with iRules..?
1 Reply
- Michael_Jenkins
Cirrostratus
A couple questions to clarify.
- Do you have both domains going to a single VIP already?
- Could you just use 2 pools (poolA and poolB) and then let the iRule select the proper pool based on hostname?
You can check out this page to get an idea of how to start working with iRules so that you can create one to do what you'd like, and in the future you'll be able to maintain it easily.
But basically, you'll do something similar to this:
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "domaina" { pool poolA } "domainb" { pool poolB } default { Where do you do go neither domain name is used? Maybe nothing and let it go to the default pool on the VIP } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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