0 Replies Latest reply on Jun 30, 2017 5:32 AM by adityan

    How to make application accessible from only one virtual-server in JBoss 6.4 EAP

    adityan

      I am deploying my application in JBoss 6.4 EAP on virtual server in standalone configuration. I have configured virtual servers in my web subsystem.

      I have also configured jboss-web.xml in my application and added virtual host entry for the same.

      But my application is also accessible from other virtual servers defined in web subsystem.

      I want my application to be accessible from one virtual server only.

      My configuration is as follows:

       

      Web Subsystem Configuration:

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

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

           <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>

           <connector name="myhttp" protocol="HTTP/1.1" scheme="http" socket-binding="myhttp"/>

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

                <alias name="localhost"/>

                <alias name="example.com"/>

           </virtual-server>

           <virtual-server name="virtualServer1" enable-welcome-root="true">

                <alias name="eQubeMI1.technologic.com"/>

           </virtual-server>

           <virtual-server name="virtualServerA" enable-welcome-root="true">

                <alias name="eQubeMIA.technologic.com"/>

           </virtual-server>

      </subsystem>

       

      jboss-web.xml:

      <jboss-web>

          <virtual-host>virtualServer1</virtual-host>

      </jboss-web>

       

       

      Please let me know if there is any more configuration change required for the same?