title: How to force HTTPS on Wildfly 11?
body: <p>I have an application that communicates with a Wildfly 11 server. Right now everything works with HTTP but I want to use only HTTPS. I would like to know</p>
  
  <ul>
  <li>how to disable http completely and only use https</li>
  <li>how to redirect http to https</li>
  </ul>
  
  <p>Is there a preferred approach between the 2?</p>
  
  <p>What files do I need to change and in what way?</p>
  
  <p>I found similar questions for Wildfly 10: <a href="https://stackoverflow.com/questions/39058998/forcing-https-redirect-on-wildfly-10-0-directs-to-https-localhost8443">Forcing HTTPS redirect on Wildfly 10.0 directs to https://localhost:8443</a> and <a href="https://stackoverflow.com/questions/43752067/redirect-http-requests-to-https-in-wildfly-10">Redirect http requests to https in wildfly 10</a> but no sources for 11.</p>