Forum Discussion
theizer_91634
Nimbostratus
Nov 26, 2008http - https redirect but terminate ssl on node instead of f5
I have a requirement to load balance several sites and redirect from http to https. Only catch is, I need to have the ssl terminate on the web server node, not on the f5.
I assume this ...
menzo_110968
Nimbostratus
Aug 04, 2010Hi,
I am new in F5, I have some problem since several days in putting in place https virtual server terminating ssl at end servers (https end to end).
I have configure:
- 1 virtual server listening: https://10.0.0.1:10095
- 1 pool servers with 2 nodes
- 1 ssl client profile with certificat and key imported from end server
- no ssl server profile
When I run tests with the url: https://10.0.0.1:10095, I get the error below.
It seem that the F5 is seeing http request instead of https.
////////////////////////
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://10.0.0.1:10095/
//////////////////////
I also create an irule redirecting http to https, but it still not working.
when HTTP_REQUEST {
If it's not an HTTPS connection, send a redirect
if {not ($https)}{
HTTP::redirect https://[HTTP::host]:10095
}
}
when HTTP_RESPONSE {
if {[HTTP::is_redirect]}{
Rewrite the Location header from http to https
HTTP::header replace Location [string map -nocase {http:// https://} [HTTP::header value Location]]
}
}
Thank you for your help.
Maybe, I missed something on my configuration or a mistake.
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