Forum Discussion
Fotios_30046
Nimbostratus
Nov 18, 2009Send Request To Pool If Certain HTTP_URI
I have a virtual server setup with a default pool. We have a third party appliance we want to use if anyone hits a certain subfolder of our site, www.site.com/products. There will probably be someth...
The_Bhattman
Nimbostratus
Nov 18, 2009Hi Fotios,
You could write up in the following manner using the switch command.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/products" { pool appliance }
"/products/something" {pool something }
"/products/something/andsomething" { pool andsomething }
}
}
If you need more info then do a search on this site for "SWITCH"
I hope this helps
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