1 Reply Latest reply on Sep 8, 2014 4:45 AM by peppem

    Deploy EAR on different undertow server

    peppem

      Hi guys,

       

      I have two different server insider undertow subsystem in order to use two interface on different ip and send different ssl certificate for different domain

       

      <subsystem xmlns="urn:jboss:domain:undertow:1.1">

                  <buffer-cache name="default"/>

                  <server name="default-server">

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

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

                      <host name="default-host" alias="localhost">

                          <location name="/" handler="welcome-content"/>

                           <access-log pattern="common" directory="${jboss.server.log.dir}" prefix="access"/>

                      </host>

                  </server>

                     <server name="default-server_secondary">

                      <http-listener name="default_secondary" socket-binding="http_secondary"/>

                      <https-listener name="https-listener_secondary" socket-binding="https_secondary" security-realm="realm2"/>

                      <host name="server.mydomain.com" alias="server.mydomain.com">

                          <location name="/" handler="welcome-content"/>

                           <access-log pattern="common" directory="${jboss.server.log.dir}" prefix="access_secondary"/>

                           <filter-ref name="server-header1"/>

                      </host>

                  </server>


      By using this configuration and others on interface and socket binding I correctly set my environment.

      But the problem is deploy the EAR file in default-server_secondary inside host server.mydomain.com.


      How to?


      Thank you

        • 1. Re: Deploy EAR on different undertow server
          peppem

          I solve it.

           

          Make and edit jboss-web.xml in WAR module

           

          <jboss-web>

              <server-instance>default-server_secondary</server-instance> <!-- does mapping to server -->

              <virtual-host>server.mydomain.com</virtual-host> <!-- does mapping to host inside server -->

          </jboss-web>