Forum Discussion
To redirect https to http
This is related to how the SSL connection is established and how the browser is supposed to present the user with a warning if he connects to a server that presents a certificate that doesn't contain the www.test.com FQDN in either common name or subject alternate name fields.
So to clearify:
- You will need a certificate which includes www.test.com or *.test.com in either common name or subject alternate name. This certificate must again be signed by a CA that the clients browsers trust.
- You will need to create a custom clientssl profile that uses the above certificate
-
You will need to create a custom iRule:
when HTTP_REQUEST {HTTP::redirect http://[getfield [HTTP::host] ":" 1][HTTP::uri] }
-
You will need to create a virtual server that listens on the same VIP as the one you use for the normal HTTP virtual server. On this you will need to bind a HTTP profile and the above mentioned iRule.
While I was typing my reply, you updated your question. So, in that case, you need to have two certificates or a SAN certificate that covers both www.test.com and www.testonline.com and bind both two your HTTPS VS.
For the iRule, the correct syntax would then be:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.test.com" {
HTTP::redirect http://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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