Forum Discussion
msdatla_64383
Nimbostratus
Aug 16, 2013Selecting another Virtual from and iRule of one Virtual ? URI based routing ?
Hi guys,
Is there a way that we can select new virtual from the iRule of one Virtual server? i tried "LB::reselect virtual vs1" but it didn't worked.
I am trying to implement URI based routing b...
Kevin_Stewart
Employee
Aug 16, 2013Try this:
when HTTP_REQUEST {
log local0. "URI = [HTTP::uri]"
if { ( [string tolower [HTTP::uri]] starts_with "/vip1" ) or ( [string tolower [HTTP::uri]] starts_with "/vip2" ) } {
log local0. "Going to virtual vs2"
virtual vs2
} else {
log local0. "Going to pool pool2"
pool pool2
}
}
Then from the command line:
tail -f /var/log/ltm
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