Forum Discussion
Neil_Harbaruk_1
Nimbostratus
Aug 01, 2006iRule for https:URL:<port>/URI
I am looking for a script to forward based on any combination of URL:/URI.
e.g. https://web1.whatever.com:8081/money --> pool1
https://web1.whatever.com:8081/coins --> pool1
...
hoolio
Cirrostratus
Aug 01, 2006Hi,
Which pool would you want selected for the following requests?
https://web1.whatever.com:8082/money --> ?
https://web2.whatever.com:8081/coins --> ?
Do you want the web1 host to determine the pool, or do you want the port to determine the pool?
Assuming you only want to look at the host name to make the decision on which pool to use, you could follow the examples in this post: Click here
when HTTP_REQUEST {
switch [HTTP::host] {
"web1.whatever.com" {
log local0. "Detected web1.whatever.com"
pool pool1
}
"web2.whatever.com" {
log local0. "Detected web2.whatever.com"
pool pool2
}
default {
log local0. "Using default pool"
use pool http-pool-myasp
}
}
}Else, if you have a lot of hosts/pools, you could use Joe's suggest in the linked post and use a class and findclass to make the load balancing decision.
Thanks,
Aaron
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