You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dom <do...@free.fr> on 2001/09/29 12:28:09 UTC

mod_webapp deploy

I'm trying to use Tomcat 4 with Apache 1.3 and mod_webapp
Is there somwhere some howto or doc about that subject, I think it deserves
more than 3 lines of rematks in server.xml.
I try to use a web app in a virtual host, but deploy gives an error, as it
tries to deploy it in $TOMCAT_HOME/webapps instead of the virtual host
appBase and context docBase


Re: mod_webapp deploy

Posted by Dom <do...@free.fr>.
Hi Manri !!

So the answer was only to embed my virtual host and context in :

<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">

It works now !! how did you gess that ???

Dom

----- Original Message -----
From: "Manri Offermann" <ma...@globalscale.net>
To: <to...@jakarta.apache.org>
Sent: Saturday, September 29, 2001 1:46 PM
Subject: Re: mod_webapp deploy


> I have been struggling with this too. It really deserves some
documentation:
> - get the source of mod_webapp.so and compile it.
> this is how I configured it
>
> server.xml:
> ====================================================
>  <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"
> name="Apache" debug="0">
>    <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="apache." suffix=".txt" timestamp="true"/>
>    <Realm className="org.apache.catalina.realm.MemoryRealm" />
> .....
>    <Host name="dell" debug="0" appBase="webapps" unpackWARs="true">
>     <Logger className="org.apache.catalina.logger.FileLogger"
>      directory="logs"  prefix="localhost_log." suffix=".txt"
>      timestamp="true"/>
>
>     <Context path="" docBase="/home/eastbeem/www" debug="0"
> reloadable="true"/>
>
>    </Host>
>   </Engine>
>  </Service>
>
>
> httpd.conf:
> ==============================================
> LoadModule webapp_module /usr/lib/apache/mod_webapp.so
> AddModule mod_webapp.c
>
> NameVirtualHost 192.168.123.33
>
> <VirtualHost 192.168.123.33>
>  ServerName dell
>  DocumentRoot /home/eastbeem/www
>  WebAppConnection warpConnection warp localhost:8008
>  WebAppDeploy /home/eastbeem/www warpConnection /
>  <Location /WEB-INF/ >
>   AllowOverride None
>   deny from all
>  </Location>
> </VirtualHost>
>
>
> hope this helps,
>
>
> manri
>
>
>
> ----- Original Message -----
> From: "Dom" <do...@free.fr>
> To: <to...@jakarta.apache.org>
> Sent: Saturday, September 29, 2001 7:28 PM
> Subject: mod_webapp deploy
>
>
> > I'm trying to use Tomcat 4 with Apache 1.3 and mod_webapp
> > Is there somwhere some howto or doc about that subject, I think it
> deserves
> > more than 3 lines of rematks in server.xml.
> > I try to use a web app in a virtual host, but deploy gives an error, as
it
> > tries to deploy it in $TOMCAT_HOME/webapps instead of the virtual host
> > appBase and context docBase
> >
>
>


Re: mod_webapp deploy

Posted by Manri Offermann <ma...@globalscale.net>.
I have been struggling with this too. It really deserves some documentation:
- get the source of mod_webapp.so and compile it.
this is how I configured it

server.xml:
====================================================
 <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"
name="Apache" debug="0">
   <Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache." suffix=".txt" timestamp="true"/>
   <Realm className="org.apache.catalina.realm.MemoryRealm" />
.....
   <Host name="dell" debug="0" appBase="webapps" unpackWARs="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
     directory="logs"  prefix="localhost_log." suffix=".txt"
     timestamp="true"/>

    <Context path="" docBase="/home/eastbeem/www" debug="0"
reloadable="true"/>

   </Host>
  </Engine>
 </Service>


httpd.conf:
==============================================
LoadModule webapp_module /usr/lib/apache/mod_webapp.so
AddModule mod_webapp.c

NameVirtualHost 192.168.123.33

<VirtualHost 192.168.123.33>
 ServerName dell
 DocumentRoot /home/eastbeem/www
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy /home/eastbeem/www warpConnection /
 <Location /WEB-INF/ >
  AllowOverride None
  deny from all
 </Location>
</VirtualHost>


hope this helps,


manri



----- Original Message -----
From: "Dom" <do...@free.fr>
To: <to...@jakarta.apache.org>
Sent: Saturday, September 29, 2001 7:28 PM
Subject: mod_webapp deploy


> I'm trying to use Tomcat 4 with Apache 1.3 and mod_webapp
> Is there somwhere some howto or doc about that subject, I think it
deserves
> more than 3 lines of rematks in server.xml.
> I try to use a web app in a virtual host, but deploy gives an error, as it
> tries to deploy it in $TOMCAT_HOME/webapps instead of the virtual host
> appBase and context docBase
>