27-Sep-2021 22:17
Hi Guys,
We have 2 existing app servers with URL https://abc.xyz.com/abc/crg.aspx and https://def.xyz.com/def/crg.aspx which we try to load balance using F5. App won't work without the specific URL path and I wanted to create an irule which will add relevant member URI path.
eg; user 1 access 123.xyz.com ---> LB select member 1 and URI get append as https://123.xyz.com/abc/crg.aspx
user 2 access 123.xyz.com ---> LB select member 2 and URI get append as https://123.xyz.com/def/crg.aspx
Would you be able to help with an irule that meets above requirement
Solved! Go to Solution.
28-Sep-2021 01:15
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals "10.1.1.1"] } {
HTTP::uri "/abc/crg.aspx"
} elseif { [IP::addr [LB::server addr] equals "10.1.1.2"] } {
HTTP::uri "/def/crg.aspx"
}
}
28-Sep-2021 01:15
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals "10.1.1.1"] } {
HTTP::uri "/abc/crg.aspx"
} elseif { [IP::addr [LB::server addr] equals "10.1.1.2"] } {
HTTP::uri "/def/crg.aspx"
}
}
03-Oct-2021
14:31
- last edited on
24-Mar-2022
01:31
by
li-migration
Thanks I have tested this and it is working as expected
06-Oct-2021
22:11
- last edited on
24-Mar-2022
01:31
by
li-migration
during extended testing we found out that there is an issue with the irule, it looks like some of the subsequent http POST requests not getting the URI appended.
packet capture (from F5 to backend XML) shows successful attempts have full URI added to the http request but unsuccessful attempt doesn't have URI path added. Any suggestions?
06-Oct-2021 22:41
why subsequent http post does not send appended URI ? F5 sent append URI on initiation http request ?