4 Replies Latest reply on Jul 3, 2017 8:48 AM by adityan

    How to start only one particular virtual server in JBoss 6.x EAP

    adityan

      I am configuring virtual servers on JBoss 6.4 EAP in standalone configuration. Is there any command line argument to start and stop one particular virtual server in JBoss EAP 6.4? Secondly, can the value of that command line argument be accessed?

       

      example: standalone.bat -c standalone-ha.xml -b x.x.x.x  <argument to start particular virtual server>

       

      I have googled on various forums, I have not found the command line argument. Let me know if there is any.

       

      Let me know if you require any details from standalone configuration.

       

      Thanks and Regards.

        • 1. Re: How to start only one particular virtual server in JBoss 6.x EAP
          abhijithumbe

          Are you  referring to virtual host configuration in web system ? If not, can you share virtual server configured in EAP 6 standalone configuration

          • 2. Re: How to start only one particular virtual server in JBoss 6.x EAP
            adityan

            Yes I am referring to virtual host configuration in web subsystem. Can we start only one particular virtual host by giving command line parameter while starting JBoss 6.x EAP?

            Secondly, can we have one connector dedicated to one virtual server? I referred to JBoss EAP 6.4 knowledge base and I have highlighted the syntax for the same.

            The server starts successfully but when I hit the URL, I get 403 error. If I remove virtual server entry from "myhttp" connector, it works.

            Are there anymore configuration changes required to deploy my application only through one particular virtual host defined in JBoss 6.4 Web module.

            My 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="virtualServer1"/>

                        </connector>

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

             

             

             

             

             

            Thanks for your quick response.

            • 3. Re: How to start only one particular virtual server in JBoss 6.x EAP
              abhijithumbe

              No we cant start any specific virtual server defined in web subsystem. Configuration you have done to configure connector specific to virtual server is correct, it should work fine. Similar is working fine at my end.

              1 of 1 people found this helpful
              • 4. Re: How to start only one particular virtual server in JBoss 6.x EAP
                adityan

                Thanks Abhijit for prompt reply. That answers my first part of the question, well since connector configuration is working fine at your end, I will test at my end using a dummy app to verify if there is any issue at my end. As of now I have used <rewrite> regex to point my application to a specific port. I will post the result using dummy app.