Forum Discussion
Davean_Hosang_1
Nimbostratus
Feb 15, 2007HTTPS-to-HTTPS redirect
Hello,
I am trying to redirect an https URL to another https URL and am not able to. Can someone let me know if this is possible? My rule scenarios are below.
****************...
Martin_Machacek
Feb 16, 2007Historic F5 Account
Davean,
this cannot work unless you first decrypt the SSL. The rule parser cannot match the HTTP Host header (which is what the http_host directive is looking for) in the encrypted content. The connection has to be handled by SSL proxy using your virtual as a back-end. The configuration may look like this:
rule RDC-Redirect-test {
if (http_host contains "app.domain1.com") {
redirect to "https://myapps.domain2.com/%u"
}
else {
discard
}
}
virtual 127.0.0.1:8888 unit 1 {
use rule RDC-Redirect-test
}
proxy 12.x.x.x:443 unit 1 {
target virtual 127.0.0.1:8888
clientssl enable
clientssl key
clientssl cert
}
Caveats: you either need to move the certificate from your server to the BIG-IP or get a new one.
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