0 Replies Latest reply on Jun 24, 2014 5:33 AM by Ramaraj Vanarajan

    Jboss 7.1.1, configuration

    Ramaraj Vanarajan Newbie

      i have tow application(war files) and i was installed ssl to my server. Is there possible to run one application using https and other one is using http?

       

      how to redirect http request to https in jboss 7.1.1

       

      my standalone xml file

       

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443"/>

                  <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">

                      <ssl name="server-ssl" password="changeit" certificate-key-file="../standalone/configuration/server.keystore" certificate-file="../standalone/configuration/server-cert.pem"/>

                  </connector>

                  <virtual-server name="default-host" enable-welcome-root="false">

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                  </virtual-server>

              </subsystem>

       

      Then my web.xml

      <security-constraint> 

              <web-resource-collection> 

                  <web-resource-name>SECURE</web-resource-name> 

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

              </web-resource-collection> 

              <user-data-constraint> 

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

              </user-data-constraint> 

          </security-constraint> 

       

      but it is not worked please help me Thanks in advance