2014-09-06 117 views
0

我有两个不同的内部wildfly暗流子系统,以使用不同的IP两种接口,并针对不同的域部署EAR

 <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> 

发送不同的SSL证书,通过采用这种结构和其他接口和套接字绑定我正确地设置我的环境。

但问题是在主机server.mydomain.com内的default-server_secondary中部署EAR文件。

如何?

谢谢

回答

0

我解决了它。

制作和编辑的jboss-web.xml中的WAR模块

默认server_secondary server.mydomain.com