Forum Discussion
Ankur_5273
Nimbostratus
Jul 31, 2015Redirect subdomain URLs to different LTM pool
Hi Experts
Is it possible that 2 subdomains (web1.myapp.com and web2.myapp.com) of a parent website ( can have same Public IP Address . If the same is possible , then i would like to know how to...
Stanislas_Piro2
Cumulonimbus
Jul 31, 2015You have two solutions:
- The old solution is to use iRules to change pool based on HTTP header "Host". this is the solution everybody will answer on devcentral
- The new solution (since 11.4) is to use LTM Policy. easier to configure, no syntax error.
the policy must be created with:
- require : http
- control : forwarding
rule 1:
- condition : HTTP-Host Host equals web1.myapp.com
- Action : Forward pool Pool_B
rule 2:
- condition : HTTP-Host Host equals web2.myapp.com
- Action : Forward pool Pool_C
rule 3:
- Condition : Leave blank
- Action : Forward pool Pool_A
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