DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13069>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13069

mod_webapp inits all webapps for each virtualHost

           Summary: mod_webapp inits all webapps for each virtualHost
           Product: Tomcat 4
           Version: 4.1.12
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Webapp
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


It looks like the mod_webb when it is used together with Apache virtualHost 
directives, cause all webapps in tomcat/webapps dir to init once for every 
virtualHost, even if only one webapp is deployed for that specific virtualHost..

Tested Config on Solaris and Linux with Jdk 1.3.1_02:
Apache 1.3.23
Tomcat 4.0.3 and 4.1.12

Server.xml
<Service name="Tomcat-Apache">

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

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

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

        <Host name="webapp1.xxx.yyy" debug="0" appBase="webapps" 
unpackWARs="true">
                <Context path="" docBase="webapp1" debug="255" 
reloadable="true">
                ... 
                </Context>
        </Host>

        <Host name="webapp2.xxx.yyy" debug="0" appBase="webapps" 
unpackWARs="true">

                <Context path="" docBase="webapp2" debug="255"
Reloadable="true">
                ...
                </Context>
        </Host>

    </Engine>

  </Service>

httpd.conf
<VirtualHost 192.168.10.10>
        ServerName webapp1.xxx.yyy
        DocumentRoot "/home/www/webapp1"
    <Directory "/home/www/webapp1">
        Options FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
        WebAppConnection conn1 warp 192.168.10.10:8008
        WebAppDeploy webapp1 conn1 /
</VirtualHost>

<VirtualHost 192.168.10.10>
        ServerName webapp2.xxx.yyy
        DocumentRoot "/home/www/webapp2"
    <Directory "/home/www/webapp2">
        Options FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
        WebAppConnection conn2 warp 192.168.10.10:8008
        WebAppDeploy webapp2 conn2 /
</VirtualHost>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to