[Feels like a newbie question, but I don't know the anwser.]

I have a web app (myapp) which has its context.xml in META-INF.

When I run it on a local vanilla Tomcat 6.0.18 (Apache download) with the standard unzipped server.xml, only one instance of myapp is started (as observed in catalina.out).

I have a Tomcat 6.0.18 running on a CentOS 5 Linux on a remote hosting service.
(Actually running in a Parallels virtual VPS.)
That system has two hosts in the server.xml (set up by the remote hosting service) as follows:

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
      </Host>

<Host appBase="webapps" name="mydomain.com" unpackWARs="true" autoDeploy="true">
          <Alias>www.mydomain.com</Alias>
          <Alias>123.123.123.123</Alias>
      </Host>

Note that they share the appBase.
When I drop myapp.war in webapps, and observe catalina.out, I see that it is started twice.
I assume that this is the expected behavior?

And so then the question is: In a remote hosting setting like this, what is the purpose of the localhost Host: <Host name="localhost" ....> Do I need this at all? Maybe it was just cruft left lying around by the person who set things up?

I certainly want to avoid two copies of myapp running.

Thanks in advance
Ken


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to