Forum Discussion
iRule for redirecting SharePoint traffic based on Path
Hi,
I need assistance in creating iRule to redirect SharePoint traffic based on path
I will have 1 Virtual server with Multiple Pool
Eg: -- should go to Pool 1 -- should go to Pool 2
I will force customer to use path "/share1 and /share2"
Thanks in advice
6 Replies
- Hannes_Rapp
Nimbostratus
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_
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_52506
Noctilucent
@ Hannes irule is correct. Check the VIP & make sure above irule should be applied on highest order(1st).
- Hannes_Rapp_162
Nacreous
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_
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_52506
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