2016-08-17

I have a Spring Boot application that is pushed on Bluemix as a CF app.
It works efficiently with the http protocol. However if i tried to force https, I get a 502 error.

I have:

And I have an application.properties file with those entries:

I am aware that Bluemix performs SSL termination; in fact it sets correctly x-forwarded-proto and x-forwarded-for. I looked for solutions like 1 and 2 but without any luck.

I then tried with the following solution, as suggested in this article but a received a redirect loop insted:

What did I miss in my approach? Many thanks for any tips/suggestions you may provide me

Show more