Forum Discussion
James_Millsap_4
Nimbostratus
Jun 24, 2013Traffic routing with iRules
Ok, some time ago we started a project to move our extremely large websites to a new platform. Instead of rewriting them all, the would be slowly rolled out. This worked fine for subdirectories und...
Kevin_Stewart
Employee
Jun 24, 2013When you say "subdomain", are you referring to subdomains of example.com? (ex. email.example.com, www.example.com, testwww.example.com, etc.)? Can I also assume that the URIs (/supra, /seo, /staff, and /marketing) exist for all applications? If so, then something like this perhaps:
when HTTP_REQUEST {
set hostlist [list email.example.com www.example.com test.example.com test1.example.com]
if { [string tolower [HTTP::host]] equals "testwww.example.com" } {
pool $HTTP_pool
} elseif { [lsearch $hostlist [string tolower [HTTP::host]]] ne -1 } {
switch -glob [string tolower [HTTP::uri]] {
...
}
}
}
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