Forum Discussion
geryatric_32399
Nimbostratus
Jul 20, 2011Need help with HTTPS only and mixed HTTP/HTTPS
Hi,
I have a design problem that im hoping someone here will be able to help with
I have two virtual servers : my_http_virtual_server - 10.100.10.10:80
my_https_virtual_s...
hoolio
Cirrostratus
Jul 20, 2011You could use an HTTP class or iRule on the existing 10.100.10.10:80 VS which matches on the requested host header value if it equals any of your five domains. The action on the HTTP class or iRule would be to redirect to https://[HTTP::host][HTTP::uri].
Here's an iRule example:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"www.example.com" -
"www.example.org" -
"www.example.net" {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}
Aaron
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