Forum Discussion
Techitect
Jul 01, 2015Nimbostratus
Pool Selection Based on URI and URL Modification
I'm trying to write an iRule that will redirect traffic to different pools based on URI, as well as altering the URL to remove the URI after the traffic is redirected to the correct pool. I think I h...
Stanislas_Piro2
Jul 01, 2015Cumulonimbus
same code without html conversion of quote:
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"/url1*" {
pool /Common/Pool1
HTTP::uri [string map { "/url1" ""} $uri]
return
}
"/url2*" {
pool /Common/Pool2
HTTP::uri [string map { "/url2" ""} $uri]
return
}
"/url3*" {
pool /Common/Pool3
HTTP::uri [string map { "/url3" ""} $uri]
return
}
"/url4*" {
pool /Common/Pool4
HTTP::uri [string map { "/url4" ""} $uri]
return
}
default {
pool /Common/Pool5
return
}
}
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