You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Bucknam <st...@TataraSystems.com> on 2003/02/11 21:51:36 UTC

server-*.xml

I want to create multiple contexts for a single server using the same
port on Tomcat 4.1.18.  I need to accomplish this through multiple
config (server.xml) files.  I read an post about being able to do this
by creating files matching the pattern "server-*.xml".  I created a
server-test.xml file with a new context but it is not available.  Should
this work?  I effectively want the following behavior:


  server.xml:

  <Service>
    <Engine>
      <Host>
        <Context path="/a" docBase="app1" unpackWARs="true" debug="0"
reloadable="true" />
        <Context path="/b" docBase="app2" unpackWARs="true" debug="0"
reloadable="true" />
      </Host>
    </Engine>
  </Service>


But, I want to accomplish this through two files:

  server-a.xml:

  <Service>
    <Engine>
      <Host>
        <Context path="/a" docBase="app1" unpackWARs="true" debug="0"
reloadable="true" />
      </Host>
    </Engine>
  </Service>

  server-a.xml:

  <Service>
    <Engine>
      <Host>
        <Context path="/b" docBase="app2" unpackWARs="true" debug="0"
reloadable="true" />
      </Host>
    </Engine>
  </Service>

The apps should be available as:

    http://localhost:8080/a
    http://localhost:8080/b

Is this possible?  If so, I assume all attributes of service, engine and
host would have to match?  Or are them cumulative?

Thanks,

Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: server-*.xml

Posted by Will Hartung <wi...@msoft.com>.
> From: "Steve Bucknam" <st...@TataraSystems.com>
> Sent: Tuesday, February 11, 2003 12:51 PM
> Subject: server-*.xml


> I want to create multiple contexts for a single server using the same
> port on Tomcat 4.1.18.  I need to accomplish this through multiple
> config (server.xml) files.

How is this different from simply creating the appropriate context XML files
(e.g. refer to admin.xml and manager.xml in the base distribution)?

Regards,

Will Hartung
(willh@msoft.com)




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org