Forum Discussion
obelix_53086
Nimbostratus
Sep 20, 2009pool member specific page
Hello,
Is there any way or is it possible to specify a specific page within a pool a rule can goto
"/accounts/*" {
stick /accounts/ sites to test server
pool www.migration member 132.234.242.43:80
}
can I specify a specirfic page here?
thanks
3 Replies
- L4L7_53191
Nimbostratus
Yes - use [HTTP::uri]. From the iRules wiki:when HTTP_REQUEST { if { [HTTP::uri] ends_with "cgi" } { pool cgi_pool } elseif { [HTTP::uri] starts_with "/abc" } { pool abc_servers } }
HTH,
Matt - The_Bhattman
Nimbostratus
You can use the SWITCH as well
Here are some additional exampleswhen HTTP_REQUEST { switch -glob [HTTP::uri] { "/accounts/*" { pool www.migration member 132.234.242.43:80 } } }
orwhen HTTP_REQUEST { switch -glob [HTTP::uri] { "*cgi" { pool cgi-pool } "/abc*" { pool abc_servers } default { pool default_pool } } }
Hope this helps
CB - obelix_53086
Nimbostratus
thought that would be the case... though I was hoping that it could redirect to a specific url like
"/accounts/*" {
stick /accounts/ sites to test server
pool www.migration member 132.234.242.43/accounts/:80
}
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