tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schiavone <...@Schiavone.org>
Subject Virtual Host appBase
Date Wed, 22 May 2002 13:20:13 GMT


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.
No matter what I set appBase to, the default 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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message