Forum Discussion
Dominicus_Hinda
Nimbostratus
Aug 11, 2006HTTPS Redirect -> hang
Hi,
I have tried to use iRule to meet the following requirement:
https://abc.com/aaa/xxxx redirect to https://abc.com/aaa/abc/receive:1111
https://abc.com/bbb/xxxx redirect to http...
Dominicus_Hinda
Nimbostratus
Aug 15, 2006Hi 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects