Forum Discussion
Rule for redirrect to specific pool member
hi all i want make rule to redirect domain to specific pool member for example: i have 1 VS with 2 pool member VS : 10.10.10.1 Pool1: 192.168.1.2 Pool2: 192.168.1.2
if i open www.testing.com/test1 << this domain will use pool1 only and if i open www.testing.com/abc << this domain will use pool 2 only
thank you :D
4 Replies
Hi,
You can use the following irule :
when HTTP_REQUEST { switch [HTTP::path] { "/test1" { pool pool1 } "/abc" { pool pool2 } } }If you need to cover every path that starts with /abc or /test1 then you can change the irule to take this into account :
when HTTP_REQUEST { switch -glob [HTTP::path] { "/test1*" { pool pool1 } "/abc*" { pool pool2 } } }
- Yann_Desmarest_
Nacreous
Hi,
You can use the following irule :
when HTTP_REQUEST { switch [HTTP::path] { "/test1" { pool pool1 } "/abc" { pool pool2 } } }- Yann_Desmarest_
Nacreous
If you need to cover every path that starts with /abc or /test1 then you can change the irule to take this into account :
when HTTP_REQUEST { switch -glob [HTTP::path] { "/test1*" { pool pool1 } "/abc*" { pool pool2 } } }
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