Forum Discussion
URL PATH based routing
Probably something like this
when HTTP_REQUEST {
switch [HTTP::host] {
"abc.com" {
switch -glob -- [HTTP::uri] {
"/abc.svc" { pool abc_pool }
}
}
"efg.com" {
switch -glob -- [HTTP::uri] {
"/efg.svc" { pool efg_pool}
}
}
}
}- QasimAug 28, 2019
Cirrostratus
thanks Eehir/SNL, I have tried this now, I will let you know once I have a confirmation.
much appreciated
- QasimSep 04, 2019
Cirrostratus
.Hi Eehir,
Can you help out here please. your rule works as expected but the problem is that its locking it down to that specific path. any chance we can change rule to say the "starts with" if so, would that fix the problem? if so, how the rule would look like?
thanks in advance.
Regards,
- eehirSep 05, 2019
Nimbostratus
Hi,
Just add * to the end of the path, that should act as a starts with statement.
/abc.svc*
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
