An example jboss.jcml EmbeddedCatalinaServiceSX mbean config with
localhost and succubus virtual hosts:
<!-- The embedded Tomcat-4.x(Catalina) service configuration -->
<mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
name="DefaultDomain:service=EmbeddedCatalinaSX">
<attribute name="Config">
<Server>
<Service name = "JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="localhost">
<Logger className = "org.jboss.web.catalina.Log4jLogger"
verbosityLevel = "trace" category =
"org.jboss.web.localhost.Engine"/>
<Host name="localhost">
<Valve className =
"org.apache.catalina.valves.AccessLogValve"
prefix = "localhost_access" suffix = ".log"
pattern = "common" directory = "../jboss/log" />
<DefaultContext cookies = "true" crossContext = "true"
override = "true" />
</Host>
<Host name="succubus">
<Alias>www.starkinternational.com</Alias>
<Alias>main.starkinternational.com</Alias>
<Valve className =
"org.apache.catalina.valves.AccessLogValve"
prefix = "succubus_access" suffix = ".log"
pattern = "common" directory = "../jboss/log" />
<DefaultContext cookies = "true" crossContext = "true"
override = "true" />
</Host>
</Engine>
<!-- A HTTP Connector on port 8080 -->
<Connector className =
"org.apache.catalina.connector.http.HttpConnector"
port = "8080" minProcessors = "3" maxProcessors = "10"
enableLookups = "true"
acceptCount = "10" debug = "0" connectionTimeout = "60000"/>
</Service>
</Server>
</attribute>
</mbean>
A war deployed to the virtual host succubs under the root context
needs to include a WEB-INF/jboss-web.xml descriptor with:
<jboss-web>
<context-root>/</context-root>
<virtual-host>succubus</virtual-host>
</jboss-web>
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Jakob Kramer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 2:32 PM
Subject: [JBoss-user] Configuring JBoss-2.4.5/Tomcat-4.0.3 to use virtual
hosts
> Greetings,
> I fear this topic may be beaten to death but I am in need of some
guidance.
> I know JBoss 2.4.5 has support for virtual hosts as per the change log.
> What I need to know is which files need to be configured to allow this, as
> well as how to alter those files.
> Despite being new to Java development and newer still to JBoss in
> particular, I have been charged with the task (not one I've sought) of
> determining how best to move our applications from Orion to JBoss (for
> which virtual hosting is an absolute necessity). I've gotten an existing
> application to run under JBoss-2.4.4 so only the virtual hosting issue is
> of concern to me at this point.
> Normally I would quite enjoy sorting though everything in my own time
> learning it and letting it soak in and all, unfortunately I am not graced
> with the luxury of time, so any help would be welcome help.
> I should also note that as of this posting I am still downloading the
> JBoss-2.4.5_Tomcat-4.0.3.zip file (sourceforge is particularly slow
today),
> so it may very well be when I view the conf files it will all be clear,
but
> for now I'm hedging my bets :)
>
> Thank you kindly in advance,
> ~Jakob Kramer
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user