Forum Discussion
6 Replies
- Hannes_RappNimbostratus
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_52506Noctilucent
@ Hannes irule is correct. Check the VIP & make sure above irule should be applied on highest order(1st).
- Hannes_Rapp_162Nacreous
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_52506Noctilucent
@ Hannes irule is correct. Check the VIP & make sure above irule should be applied on highest order(1st).