Forum Discussion
adrian_171483
Cirrus
Mar 03, 2015muliple URL's to different pools - one VIP
I have a requirement for some URL's to point to a single VIP I need to write an Irule to accomodate a number of URL's that use the same vip but point down to Server side VIP's
so far I am thin...
Brad_Parker_139
Nacreous
Mar 03, 2015It looks like you are wanting to direct to pool by host name, not URI. In that case you would do something like this. You also don't need
glob unless you are going to use wildcards(*). In your case, it would be more efficient to ommit the glob.
when HTTP_REQUEST {
switch -- [string tolower [HTTP::host]] {
"mysite1.mydomain.com" { pool MYPOOL-1 }
"mysite2.mydomain.com" { pool MYPOOL-2 }
}
}
adrian_171483
Cirrus
Mar 03, 2015Thanks.. it is the case that two of the hostnames direct to the same Pool .. so is is possible to forward like this:
when HTTP_REQUEST {
switch -- [string tolower [HTTP::host]] {
"mysite1.mydomain.com" "mysite3.mydomain.com" { pool MYPOOL-1 }
"mysite2.mydomain.com" { pool MYPOOL-2 }
}
}
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