Forum Discussion
Nacho_de_Aguina
Nimbostratus
Oct 19, 2007Redirect depending 2nd level
Hello
I would like to redirect http requests to a pool depending on the second level URI
Let me explain myself
http://www.mycompany.com/finances/dev
Depending ...
hoolio
Cirrostratus
Oct 22, 2007Hi,
Can you explain what request you are making, what is happening and how you want to handle the request instead?
You can add logging to the rule to get additional detail on what is happening:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
log local0. "[IP::client_addr] - \$uri: $uri"
if { $uri starts_with "/tics" or $uri starts_with "/customer" or $uri contains "jdbc"}{
log local0. "[IP::client_addr] - matched test for pool_www"
pool pool_www
} elseif { $uri starts_with "/finances/dev" } {
log local0. "[IP::client_addr] - matched test for pool_dev"
pool pool_dev
} else {
log local0. "[IP::client_addr] - default: redirected"
HTTP::redirect "http://www.f5.com/"
}
}Aaron
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
