title: Deploy EAR on different Wildfly undertow server
body: <p>I have two different  inside wildfly undertow subsystem in order to use two interface on different ip and send different ssl certificate for different domain</p>
  
  <p></p>
  
  <pre><code>        &lt;buffer-cache name="default"/&gt;
  
          &lt;server name="default-server"&gt;
  
              &lt;http-listener name="default" socket-binding="http"/&gt;
  
              &lt;https-listener name="https-listener" socket-binding="https" security-realm="https_realm1"/&gt;
  
              &lt;host name="default-host" alias="localhost"&gt;
  
                  &lt;location name="/" handler="welcome-content"/&gt;
  
                   &lt;access-log pattern="common" directory="${jboss.server.log.dir}" prefix="access"/&gt;
  
              &lt;/host&gt;
  
          &lt;/server&gt;
  
             &lt;server name="default-server_secondary"&gt;
  
              &lt;http-listener name="default_secondary" socket-binding="http_secondary"/&gt;
  
              &lt;https-listener name="https-listener_secondary" socket-binding="https_secondary" security-realm="realm2"/&gt;
  
              &lt;host name="server.mydomain.com" alias="server.mydomain.com"&gt;
  
                  &lt;location name="/" handler="welcome-content"/&gt;
  
                   &lt;access-log pattern="common" directory="${jboss.server.log.dir}" prefix="access_secondary"/&gt;
  
                   &lt;filter-ref name="server-header1"/&gt;
  
              &lt;/host&gt;
  
          &lt;/server&gt;
  </code></pre>
  
  <p>By using this configuration and others on interface and socket binding I correctly set my environment.</p>
  
  <p>But the problem is deploy the EAR file in default-server_secondary inside host server.mydomain.com.</p>
  
  <p>How to?</p>
  
  <p>Thank you</p>