0 Replies Latest reply on Dec 20, 2012 4:38 AM by lemdan

    virtual servers on different ports

    lemdan

      Hello all!

      I want two my site work on different port same ip-address

      i have:

      subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

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

                                    <virtual-server name="default-host"/>

                                    </connector>

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

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                  </virtual-server>

              </subsystem>

       

      I added a new socket-binding:

      <socket-binding name="http2" port="8081"/>

       

      created a new virtual-server:

      <virtual-server name="foo" default-web-module="Hello" enable-welcome-root="false"/>

       

      now I added a new connector, refering to both, the socket-binding and the virtual-server:

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

          <virtual-server name="foo"/>

      </connector>

       

       

      But when jboss start, i have error:

      16:45:48,622 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      16:45:49,007 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      16:45:49,096 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      16:45:50,494 ERROR [org.jboss.as.controller.management-operation] Operation ("add") failed - address: ([

          ("subsystem" => "web"),

          ("connector" => "http2")

      ]) - failure description: "JBAS014688: Wrong type for virtual-server. Expected [STRING] but was LIST"

       

       

      May be anybody help me, pleas?