Forum Discussion
SSL Cert warning with irule https to http
So I have a SAN cert with alternate name without www. How do I get traffic forwarding from both http://mysite.com to http://www.mysite.com and https://mysite.com to https://www.mysite.com
You're HTTP (port 80) VIP would be the simplest, and you probably don't care what URI they're using to get there:
when HTTP_REQUEST {
HTTP::redirect "https://www.mysite.com[HTTP::uri]"
}
And then the HTTPS (port 443) VIP would simply need to catch anything going to "mysite.com" and redirect to "www.mysite.com":
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "mysite.com" } {
HTTP::redirect "https://www.mysite.com[HTTP::uri]"
}
}
The SAN certificate that you apply to the HTTPS VIP should include both the "www.mysite.com" and "mysite.com" subject names.
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