I am just getting into tomcat and am trying to configure a server with
virtual hosts in this structure :
 
/www/docs/host1
/www/docs/host2 
 
...
etc
 
under each host i made the WEB-INF directory and a web.xml file
I exported the CATALINA_HOME to the /opt/tomcat4.0.1 
(installdir of tomcat)
and tried with CATALINA_BASE equal to the home
AND CATALINA_BASE=/www/docs to 
connect a http virtual host to the host1 webapp ...
in httpd.conf :
<VirtualHost 10.1.1.201:80>
    ServerAdmin [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
    DocumentRoot /www/docs/host1
    ServerName 2s_cac
    ErrorLog /www/logs/errorlogs/host1-error.log
    TransferLog /www/logs/host1-access.log
       <Directory "/www/docs/host1">
          Options None
          AllowOverride None
          order allow,deny
          allow from all
        </Directory>
 
<IfModule mod_webapp.c>
    WebAppConnection conn warp servername:8008
    WebAppDeploy host1 conn  /
    WebAppInfo /webapp-info
</IfModule>
</VirtualHost>
 
in the server.xml file i defined the appBase to be /www/docs, hoping to get
all underlying webapps :
 
 <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"   enableLookups="true"
acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
defaultHost="servername"
     name="Apache" debug="0" appBase="/www/docs">
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
   <Host name="servername" debug="0" appBase="/www/docs" unpackWARs="true"> 
   </Host>
    </Engine>
  </Service>
 
i can start tomcat, no error  in the logs, all webapps are started,
but when i start the http server i get tis error in the tomcat logs : 
2001-12-07 14:19:50
[org.apache.catalina.connector.warp.WarpConfigurationHandler
] Cannot find "/opt/tomcat4.0.1/webapps/cac" for appl. "host1" host
"servername"
if CATALINA_BASE was the HOME dir of
] Cannot find "/www/docs/webapps/cac" for appl. "host1" host "servername"
if CATALINA_BASE=/www/docs ...
 
where does tomcat or apache get that webapps directory ???
is it obligatory ??? can i remove that setting  somewhere ?
 
thanks for the FEED-BACK
 
Stijn Ver Eecke
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
 
ps : servername is the name of the server, like known in the network,
host1 is added to /etc/hosts to the same ip as servername ... both give ping
replies so exist
 
 


Reply via email to