Hi All,
First, thank you for your advice. The iRule is working now, however, I encounter another problem after enable HTTP profile and SSL profile-Client as it is prerequisite for the iRule.
When I use the actual ip address of the server (10.83.81.11) instead of the virtual ip address (10.83.64.240) that I defined at the F5 for the HTTP::redirect, the iRule is working.
********************************************************
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/invoke/") and not ([HTTP::uri] contains "/invoke/wm.ip.rn/")} {
HTTP::redirect https://10.83.64.240:4443/invoke/wm.ip.rn/receive
HTTP::redirect https://10.83.81.11:4443/invoke/wm.ip.rn/receive
log local0. "URI: [HTTP::uri]"
} elseif { [HTTP::uri] contains "/b2bv6/" } {
HTTP::redirect https://10.83.64.240:6666/invoke/wm.ip.rn/receive
log local0. "URI: [HTTP::uri]"
}
}
********************************************************
However, if I use the virtual ip address (10.83.64.240) for the HTTP::redirect as we want to load balance the incoming traffic to two servers, the page is not displayed correctly -> I only see "[] [] [] [] (" at the web browser.
********************************************************
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/invoke/") and not ([HTTP::uri] contains "/invoke/wm.ip.rn/")} {
HTTP::redirect https://10.83.64.240:4443/invoke/wm.ip.rn/receive
HTTP::redirect https://10.83.81.11:4443/invoke/wm.ip.rn/receive
log local0. "URI: [HTTP::uri]"
} elseif { [HTTP::uri] contains "/b2bv6/" } {
HTTP::redirect https://10.83.64.240:6666/invoke/wm.ip.rn/receive
log local0. "URI: [HTTP::uri]"
}
}
********************************************************
How to solve this issue?
Thank you,
Regards,
Dominicus