Forum Discussion
obelix_53086
Nimbostratus
Sep 21, 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
- 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 } }
- The_Bhattman
Nimbostratus
You can use the SWITCH as wellwhen HTTP_REQUEST { switch -glob [HTTP::uri] { "/accounts/*" { pool www.migration member 132.234.242.43:80 } } }
when HTTP_REQUEST { switch -glob [HTTP::uri] { "*cgi" { pool cgi-pool } "/abc*" { pool abc_servers } default { pool default_pool } } }
- obelix_53086
Nimbostratus
thought that would be the case... though I was hoping that it could redirect to a specific url like
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