Forum Discussion
phamp008_71865
Nimbostratus
Jul 30, 2010Proxy 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.
2 Replies
- hoolio
Cirrostratus
Do I need to associate redirect_https rule to my virtual loopback (127.0.0.3:http) in order to be redirected? - phamp008_71865
Nimbostratus
Thanks for clarification
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