Forum Discussion
Roger_Grannum_7
Nimbostratus
Apr 06, 2006Newbie Question
First crack at this and I can't seem to get it right. I want to be able to check the URI coming in and based on the variable at the end determine which pool the request goes to.
For example:
I have two pools: member_pool and order_pool
If a user is not a member and goes to mydomain.com/NewOrder.asp?From=IDGC --> order_pool
If a user is a member and goes to mydomain.com/MainPage.asp --> member_pool.
I tried using:
if (http_uri matches_regex "/pages2/english/NewOrder.asp?From=IDGC") {
use pool Idg_NewOrder_https
}
else {
use pool idg_443
}
- Martin_MachacekHistoric F5 AccountRoger,
if(http_uri contains "NewOrder") { use pool Idg_NewOrder_https } else { use pool idg_443 }
rule r1 { log "uri: " + http_uri if(http_uri contains "NewOrder") { use pool Idg_NewOrder_https log "using pool Idg_NewOrder_https" } else { use pool idg_443 log "using pool idg_443" } }
RULE r1 - uri: NewOrder.asp?From=IDGC RULE r1 - using pool Idg_NewOrder_https
- Roger_Grannum_7
Nimbostratus
Thanks for you response.
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