Forum Discussion
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
3 Replies
- Ed_Summers
Nimbostratus
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
- Vijay_E
Cirrus
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
- Placide_174633
Nimbostratus
Thanks for your reply I think environment prefers iRules
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
* 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