Forum Discussion
Need users to be directed to specific pool members based on URI
Hi,
I am new to F5 LTM 10.2.3 and have a need to perform the following:
I have a Virtual server g2.ga1.test.com:443
There are three URI's that users will type:
g2.ga1.test.com/cmf_ap
g2.ga1.test.com/cmf_na
g2.ga1.test.com/USAT
This is what I need to have happen:
If user goes to https://g2.qa1.test.com/cmf_ap send to 10.21.1.122, 10.21.1.121 on port 7777
https://g2.qa1.test.com/cmf_na send to 10.21.1.122, 10.21.1.121 on port 7778
https://g2.qa1.test.com/USAT send to 10.21.1.122, 10.21.1.121 on port 7778 or 7777
What would be the easiest way to make this happen?
Thanks, Brad
1 Reply
- nitass
Employee
this is just one of examples.[root@ve10:Active] config b virtual bar list virtual bar { snat automap destination 172.28.19.79:443 ip protocol 6 rules myrule profiles { clientssl { clientside } http {} tcp {} } } [root@ve10:Active] config b pool cmf_ap list pool cmf_ap { members { 10.21.1.121:7777 {} 10.21.1.122:7777 {} } } [root@ve10:Active] config b pool cmf_na list pool cmf_na { members { 10.21.1.121:7778 {} 10.21.1.122:7778 {} } } [root@ve10:Active] config b pool usat list pool usat { members { 10.21.1.121:7777 {} 10.21.1.121:7778 {} 10.21.1.122:7777 {} 10.21.1.122:7778 {} } } [root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { switch -glob [string tolower [HTTP::path]] { "/cmf_ap*" { pool cmf_ap } "/cmf_na*" { pool cmf_na } "/usat*" { pool usat } default { do something } } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
