To bind a IP to an engine have a look at either:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
For the installation structure:
First:
Have a look at RUNNING.txt in the tomcat distribution
...
Second:
We have a structure like this:
/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4
/usr/local/java/tomcat-4...
/usr/local/java/tomcat-5...
/www/online/<site>
/log
dirctory for the log file
/conf
web.xml
server.xml
and other files that contain the site specific setup for tomcat
(tailored versions of the files that are provided by
tomcat)
make shure that the combination of IP and port are unique for
each instance of tomcat.
...
/work
Directory where tomcat stores the generated files and classes
/webapps
Directories for the contexts
/bin
start.sh
Script that calls the tomcat version that we want to use for
this site with the environment for this site:
JAVA_HOME=/usr/local/java/jdk/sun1.3.1
CATALINA_HOME=/usr/local/java/tomcat-....
CATALINA_BASE=/www/online/<site>
export JAVA_HOME CATALINA_HOME CATALINA_BASE
${CATALINA_HOME}/bin/startup.sh
This way we can have different versions of tomcat at the same time,
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to
use an other version of tomcat we just have to change CATALINA_HOME
in start.sh (unless the config files are incompatible between these
versions)
> -----Original Message-----
> From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 2:54 PM
> To: 'Tomcat Users List'
> Subject: RE: Question about multiple instances instead virtual hosts
>
>
> can you give examples of:
>
> - how to define CATALINA_BASE (i.e. a new director
> applications/applicationX/webapps,
> applications/applicationY/webapps etc is
> that OK??)
> - how to bind the one ip address??
>
> Maarten
>
> -----Oorspronkelijk bericht-----
> Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> Verzonden: Friday, September 10, 2004 1:41 PM
> Aan: Tomcat Users List; [EMAIL PROTECTED]
> Onderwerp: RE: Question about multiple instances instead virtual hosts
>
>
>
> My recommendations:
> - Use one installation and define CATALINA_BASE for each.
> - Define one virtual ip per instance
> - bind each instance to one ip
>
> > -----Original Message-----
> > From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 10, 2004 2:16 PM
> > To: 'Tomcat Users List'
> > Subject: Question about multiple instances instead virtual hosts
> >
> >
> > Hello,
> >
> > Now I have a production server with tomcat 4.1.24. I have several
> > applications installed (in webapps) and sets them up as
> > virtual hosts. I get
> > the idea that using multiple instances would work better for
> > me. I read the
> > documentation but what I read is there are 2 possible
> > solutions: for each
> > instance install a new Tomcat installation and second modify the
> > CATALINA_BASE directory. Now my questions:
> >
> > How could I best setup the multiple instances?? And second
> > question is: my
> > Tomcat webserver is standalone. That means handles all the
> > http requests to
> > port 80. How can I make this work with more than one
> > instance?? In other
> > words how do I establish that a http request (port 80) will
> > go to the right
> > Tomcat instance??
> >
> > Thanx in advanced,
> >
> > Maarten
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]