You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gary Hirschhorn <gh...@fetch.com> on 2005/04/19 16:34:08 UTC

Multiple services in single Tomcat instance

We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.

    <Service name="RequestsFromPort6000">
      <Connector protocol="HTTP/1.1" port="6000"/>
      <Engine debug="0" defaultHost="localhost" name="Standalone">
        <Host appBase="c:/projects" name="localhost" unpackWARs="false"
autoDeploy="false" deployOnStartup="false">
          <Context docBase="/app6000" path="/app6000"
reloadable="false"/>
        </Host>
      </Engine>
    </Service>  

    <Service name="RequestsFromPort7000">
      <Connector protocol="HTTP/1.1" port="7000"/>
      <Engine debug="0" defaultHost="localhost" name="Standalone">
        <Host appBase="c:/projects" name="localhost" unpackWARs="false"
autoDeploy="false" deployOnStartup="false">
          <Context docBase="/app7000" path="/app7000"
reloadable="false"/>
        </Host>
      </Engine>
    </Service>

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