title: Redirect http to https on spring boot embedded undertow
body: <p>I am using spring boot (1.2.3) and embedded undertow. For security reasons I would prefer to redirect any http request to https but I cannot find an example for doing this.</p>
  
  <p>Here is an example for spring boot and tomcat:
  <a href="https://stackoverflow.com/questions/26438143/spring-boot-embeded-tomcat-http-to-https-redirect">Spring boot - Embeded Tomcat HTTP to HTTPS redirect</a></p>
  
  <p>Does anyone have a solution for doing this with undertow?</p>