Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

different pools of servers behind same LB VIP

Hi,

I am new to F5 and please forgive me if this is basic. I have requirements to configure F5 to allow access to different server/applications that use same https://www.abc.com URL/VIP. Application1 is accessible via https://www.abc.com/app1 and has its own pool of servers which the LB will load balance on, application two is https;//www.abc.com/app2 and has its own pool of servers. SSL should be offloaded on the LB. Any suggested iRule to perform this task? Thanks for your help

0
Rate this Question
Comments on this Question
Comment made 21-Jul-2016 by Yoann Le Corvic 79

Hi,

Easier than iRules in most case unless you have a very specific situation, use Policies.Image Text

Yoann

1
Comment made 22-Jul-2016 by Placide 2

Thanks for your reply I think environment prefers iRules

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

I don't know if you have additional requirements but you could start with a simple iRule using if/else or switch. Switch would probably be more efficient if you have several apps to check for. Apply a client-ssl profile to the virtual for SSL offloading. You can define a default pool on the virtual that will be used if the iRule doesn't select a specific pool.

Some of the existing posts may give you enough information to accomplish this (and more). Feel free to ask if you have more specific issues going on:

iRules 101 - Selecting Pools, Pool Members, and Nodes

iRule based on HTTP path or Host header

iRule based on path and URI

0
Comments on this Answer
Comment made 22-Jul-2016 by Placide 2

Cool what am going to go for. Cheers

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Untested:

  When HTTP_REQUEST {
    if { [HTTP::host] eq "abc.com" } {
     if { [HTTP::uri] equals "/app1" } {
       pool POOL-APP1 
      } elseif { [HTTP::uri] equals "/app2" } {
       pool POOL-APP2
      }
    }       
    }   

https://devcentral.f5.com/articles/irules-101-01-introduction-to-irules

0