-
1. Re: Virtual Host under Connector
the_alien Feb 13, 2012 10:55 AM (in response to frostbytten)Hi there,
I'm running into the exact same error like you did. I'm trying to have different web applications available through different ports.
I added a new socket-binding:
<socket-binding name="http2" port="8181"/>
created a new virtual-server:
<virtual-server name="foo.com" default-web-module="/multipart-war" 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.com"/>
</connector>
Now I only get a HTTP 403 error when trying to access port 8181.
Is there any advice on how to do this?
-
2. Re: Virtual Host under Connector
frostbytten Feb 13, 2012 11:03 AM (in response to the_alien)After you specify this, you need to make sure there is a jboss-web.xml in your WEB-INF formatted in the following manner:
{code:xml}<jboss-web>
<virtual-host>foo.com</virtual-host>
</jboss-web>{code}
This takes care of the necessary routing within JBoss.
Also, although this is implemented within the xsd file, I don't think that it is currently read at this point. I am still experimenting with my settings to verify this.