Im using JBoss+Tomcat v4.03 implementing
virtual hosts. I want to make appBase so that each Virtual host
has its own index.html. DNS is Working fine, the domains
will succesfully resolve,,, so there's no problem there.
I am NOT using apache, should I be,,, I thought new TOMCAT had
http built in as of version 4....
I edit'd the server.xml file in the TomCat conf directory... see below.
No matter what I set as appBase, the default TomCat example
directory always appears in browser.
Upon selecting either domain, http://www.domain1.com:8080/ .
Im expecting that the index.html that is in the ${TOMCAT_HOME}/domain1
load up.... Likewise for www.domain2.com,,, I would expect
${TOMCAT_HOME}/domain2 loading the index.html there.
I searched the archive and have seen others refer to this
problem, but no solution found,,,yet!
PLEASE help...........................................................
It appears BROKEN, I have modified server.xml
as follows;
<Server>
<Service name = "JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="www.domain1.org">
<Logger className = "org.jboss.web.catalina.Log4jLogger"
verbosityLevel = "trace" category =
"org.jboss.web.localhost.Engine"/>
<Host name="www.domain2.com" appBase="/domain2">
<Alias>www.domain2.com</Alias>
<Alias>domain2.com</Alias>
<Context path="/domain2" docBase="/domain2" debug="1" reloadable="true"
crossContext="false">
<Valve className =
"org.apache.catalina.valves.AccessLogValve"
prefix = "domain2_access" suffix = ".log"
pattern = "common" directory = "../jboss/log" />
<!--DefaultContext cookies = "true" crossContext = "true"
override = "true" />
</Host>
<Host name="www.domain1.org" appBase="/domain1">
<Alias>www.domain1.org</Alias>
<Alias>domain1.org</Alias>
<Valve className =
"org.apache.catalina.valves.AccessLogValve"
prefix = "domain1_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>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
------------- End Forwarded Message -------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>