Forum Discussion
iRule for redirecting SharePoint traffic based on Path
That's L7 content switching. A redirect happens when you issue a HTTP 3xx response to another location.
when CLIENT_ACCEPTED {
set poolDefault [LB::server pool]
}
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/path1*" { pool poolA }
"/path2*" { pool poolB }
"/pathN*" { pool poolN }
default { pool $poolDefault }
}
}
- nibinrodrigues_Nov 12, 2016
Nimbostratus
Hi.
Thanks for the response but the rule didn't work during the test
Our setup is mentioned below.
when external user surf https://elearning.abc.com -- We are re-directing to MY-POOL (This is working fine)
Now the new requirement is when users surf https://elearning.abc.com/Path1 -- It should re-direct to Path1_Pool (Not redirecting)
Now the new requirement is when users surf https://elearning.abc.com/Path2 -- It should re-direct to Path2_Pool (Not redirecting)
What I noticed is from internally also am not able to resolve https://elearning.abc.com/Path1 but if I put Server IP with path its resolving ie https://192.168.10.1/Path1.
Kindly advice Thanks
- Samir_Jha_52506Nov 14, 2016
Noctilucent
@ Hannes irule is correct. Check the VIP & make sure above irule should be applied on highest order(1st).
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