Forum Discussion
aschi
Nimbostratus
Mar 06, 2013https to http redirect
Hello
I have the following Problem.
What ist running at the moment:
->
->
->
Every Request to the "url", even on Port 80 must be redirected to https.
We have...
aschi
Nimbostratus
Mar 07, 2013hi Michael
Thanks for your explanations.
I tried it frist with the httpclass Method but it wasn't successfull. Not sure where the Problem was. Troubleshotting seems to me very difficult to find the Problem.
So I startet with iRules.
This works so far great but there one last Problem:
http://url/uri1 -> http://server1/uri1
https://url/uri1 -> https://server1/uri1
http://url/uri2 -> http://serverA/uri2 or http://serverB/uri2
https://url/uri2 -> http://serverA/uri2 or http://serverB/uri2
But the Problem is the from the Client side is must keep https. How do I terminate the https and go with http to the two Servers?
Terminating the ssl has to be done with the ssl Profile but how do I have to configure it that I am able to choss between http and http from the LTM to the webserver?
I used the following iRule for http Host:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/uri2" } {
use pool ACA-Pool_NLB-Test_2Nodes_http
} else {
HTTP::redirect https://[HTTP::host][HTTP::uri] }
}
And for the https Host the following:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/uri1" } {
use pool ACA-Pool_NLB-Test_https
} elseif { [HTTP::uri] starts_with "/uri2" } {
HTTP::redirect http://[HTTP::host][HTTP::uri]
use pool ACA-Pool_NLB-Test_2Nodes_http
} else {
use pool ACA-Pool_NLB-Test_2Nodes_https }
}
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