1 Reply Latest reply on May 23, 2017 11:41 AM by brian_parker

    Can you direct port 80, 443 and 8443 to the secure port?

    brian_parker

      In the undertow subsystem I have:

              <http-listener name="default" socket-binding="http" redirect-socket="https"/>

              <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm"/>

       

       

      I have the following in the <socket-binding-group   ...> section of standalone.xml

       

              <socket-binding name="http" port="${jboss.http.port:80}"/>

              <socket-binding name="https" port="${jboss.https.port:443}"/>

       

       

      In the web.xml file I have:

       

           <security-constraint>

              <web-resource-collection>

              <web-resource-name>fais</web-resource-name>

              <url-pattern>/*</url-pattern>

              </web-resource-collection>

              <user-data-constraint>

              <transport-guarantee>CONFIDENTIAL</transport-guarantee>

              </user-data-constraint>

           </security-constraint>

       

      The above successfully sets the default SSL port of 443 to the Wildfly server and redirects traffic from port 80 to the SSL port of 443.

       

      I am also trying to redirect https traffic from port 8443 to the SSL port of 443 . Can this be done?