I am attempting to configure Tomcat 4.0 and Apache 1.3 to work with virtual
hosts.  I have been able to get the WARP connector working with the default
apps in tomcat.  However when I configure for a virtual host going to a
different app base it communicates with tomcat and gives me a listing of the
default webapps directory (which on the side does not work from this
connector).  I would appreciate any guidance on setting up virtual hosts in
tomcat 4.0.  I have attached pertinent code snippets from the httpd.conf and
server.xml.

httpd.conf:

<VirtualHost 127.0.0.1>
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot F:/home/wwwroot/mack/htdocs
        ServerName mack-weh
        ErrorLog logs/mack-weh-error_log
        CustomLog logs/mack-weh-access_log common
        WebAppConnection mack-conn warp mack-weh:8010
        WebAppDeploy / mack-conn /
</VirtualHost>

# Add configuration needed to work with Tomcat 4.0

WebAppConnection conn warp whefner:8008
WebAppDeploy examples conn /examples


server.xml:

  <!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set
to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0" appBase="webapps">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

  <!-- Define an Apache-Connector Service for mack-weh -->
  <Service name="MackConnector">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8010" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set
to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="mack-weh" debug="1" appBase="F:/home/wwwroot/mack/htdocs">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="mack-apache_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

Any help would be appreciated.

thanks,

wayne


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to