For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ankur_5273's avatar
Ankur_5273
Icon for Nimbostratus rankNimbostratus
Jul 31, 2015

Redirect 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 redirect the parent website to LTM Pool A (based on host header) and redirect the child subdomains to Pool B and C respectively.

 

Rgds,

 

Ankur

 

3 Replies

  • I guess Yes, its possible. Add alias name web1.myapp.com and web2.myapp.com in DNS & use iRule based on condition.

     

  • You could use an irule to manipulate your HTTP Header to redirect different pool member

     

  • You 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