JBoss EAP virtual-servers with same alias names

Solution Unverified - Updated -

Issue

We have 2 virtual-servers with the same alias trying to use the root context. It appears that the proxy (mod_cluster) is only registering 1 of the virtual servers and may it be a "first-come-first-server" condition as to which virtual-server gets registered to the proxy and gets the root context.

<subsystem xmlns="urn:jboss:domain:web:2.1" default-virtual-server="default-host" native="false">
    <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
    <virtual-server name="default-host" enable-welcome-root="true">
        <alias name="example.com"/>
    </virtual-server>
    <virtual-server name="default-host2" enable-welcome-root="true">
        <alias name="example.com"/>
    </virtual-server>
</subsystem>

Environment

  • Red Hat JBoss Enterprise Application Platform 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content