Forum Discussion
lisiecki_54902
Nimbostratus
Jun 09, 2009https redirect to pool based on uri
I have looked though many examples. I recieve an https request and I need to forward to a pool based on uri:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/thing1" } {
...
The_Bhattman
Nimbostratus
Jun 09, 2009Are you passing the SSL traffic or does it terminate on the F5?
If you are you might want to re-code it to look like something of the following:
when HTTP_REQUEST {
switch -glob [HTTP::uri]
"/thing1*" { pool thing1}
"/thing2*" { pool thing2}
}
}
or
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/thing1" } {
pool thing1
elseif { [HTTP::uri] starts_with "/thing2" } {
pool thing2
}
}
Hope this helps
CB
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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