Forum Discussion
Resource Assignment based on Virtual Server?
Hey Ryan!
So I did some testing in my lab and I discovered that this is way easier to do with an iRule. I used the following syntax:
when HTTP_REQUEST {
if {[virtual name] equals "/Common/VSTest-01"} {
pool PoolTest-01
}
if {[virtual name] equals "/Common/VSTest-02"} {
pool PoolTest-02
}
}
The behavior was that I authenticated to first virtual server and accessed the back-end server on pool1. Then I killed my record in the hosts file and changed to other VS address. I was automatically switched over to the pool2 without having to log on again. So in my setup I do not use any resource assignment, I let the iRule dictate this.
Let me know how that works out for you 🙂
I hope this helps!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
