phamp008_71865
Jul 30, 2010Nimbostratus
Proxy Irule redirect for both http and https to external URL
Need some help from experts for this:
Redirect current VIP HTTP/HTTPS to external URL both HTTP/HTTPS
VIP: 77.X.X.240:80 and 77.X.X.240:443
source_url www_abc_com
destination_url www_xyz_com
I managed to test out iRULE for http redirection. I am still not very clear on how to redirect https.
Here's my current config:
rule redirect_http {
if ( http_host starts_with www_abc_com) {
redirect to
}
Associate redirect_http to my virtual server 77.X.X.240:80
}
rule redirect_https {
if (http_host starts_with www_abc_com) {
redirect to https://www.xyz.com
}
}
Associate redirect_https to my virtual server 77.X.X.240:443
PROBLEM: HTTPS is not redirecting
There are some posts stating it's required to have SSL proxy.
proxy 77.X.X.240:443 unit 1 {
target virtual 127.0.0.3:http
clientssl enable
clientssl key abc.com.key
clientssl cert abc.com.crt }
Does this mean I have to delete the current 77.X.X.240:443 in order for me to creat proxy SSL ?
Do I need to associate redirect_https rule to my virtual loopback (127.0.0.3:http) in order to be redirected?
Greatly appreciate your help.