title: Wildfly 8.2.0 Doesn't redirect to https
body: <p>I have enabled https changing standalone.xml as follows:</p>
  
  <pre><code> &lt;security-realms&gt;
  
          &lt;security-realm name="UndertowRealm"&gt;  
              &lt;server-identities&gt;  
                  &lt;ssl&gt;  
                      &lt;keystore path="./ed.keystore" relative-to="jboss.server.config.dir" keystore-password="secret" alias="ed" key-password="secret" /&gt;  
                  &lt;/ssl&gt;
              &lt;/server-identities&gt;  
          &lt;/security-realm&gt; 
          ...
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:undertow:1.2"&gt;
          &lt;buffer-cache name="default"/&gt;
          &lt;server name="default-server"&gt;
              &lt;http-listener  name="default" socket-binding="http" redirect-socket="https" /&gt;
              &lt;https-listener name="https"   socket-binding="https" security-realm="UndertowRealm" /&gt;
  </code></pre>
  
  <p>Both the following links work:</p>
  
  <ul>
  <li><a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></li>
  <li><a href="https://localhost:8443" rel="nofollow">https://localhost:8443</a></li>
  </ul>
  
  <p>the second actually is a secure connection.</p>
  
  <p>Unfortunately, the first link doesn't redirect to the https protocol.</p>
  
  <p>What have I missed?</p>
  
  <p>Thank you.</p>