Forum Discussion
Neil_66348
Nimbostratus
Jan 24, 2010HTTP URI to multiple pools
Hi guys ,
Fairly new to iRules and TCL , would like to have the ability to have different uri's for the same site directed to different pools.
Essentially :
www.company.com - goes to one pool
www.company.com/account goes to another pool - (but www.company.com can have other paths)
www.company.com/service - goes to another pool
Anything not specified goes to the default pool for the listner.
Pieced together this example , (which doesn't work) can anyone assist.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.company.com/account" {
Rewrite URI to /account/path/index.html
if {[HTTP::path] eq "/"}{
HTTP::uri "/account/path/index.html"
}
Use pool1
pool pool1
}
"www.company.com/service" {
Rewrite / to /service/path/index.html
if {[HTTP::path] eq "/"}{
HTTP::uri "/service/path/index.html"
}
Rewrite URI to www.company.com
Use pool2
pool pool12
}
}
}
Thanks
Neil
- hoolio
Cirrostratus
Hi Neil, - Moe_Jartin
Cirrus
Neil, - Neil_66348
Nimbostratus
hi joe ,
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