Spring Boot with Embedded Undertow behind AWS ELB - HTTP to HTTPS redirect
问题 I'm running a Spring boot (Jhipster/Undertow) application on port 8080 on an AWS EC2 instance. I have an AWS ELB configured to redirect 80 -> 8080 443 (SSL termination happens here) -> 8080 The application uses Spring Security and if you user arrives to http://example.com I want it to redirect to https://example.com, to use SSL. I have found various examples of configuring this in Tomcat but none using Undertow. I have tried this, with a second port 8089, and it does redirect as required, but