export JAVA_HOME=/opt/jdkversion export CATALINA_HOME=/opt/tomcat-4.1 export CATALINA_BASE=~/tomcat/webapps
This would be a config suitable for a user how wants tomcat running in his/her home dir..
~/bin/tomcat.sh ~/tomcat/conf/server.xml ~/tomcat/webapps ~/tomcat/logs ~/tomcat/tmp
If you restrict the user's bash profile and symlink the binaries required to fire tomcat and the tomcat start stop script itself.
The other alternative if you are hosting a number of sites but not letting other users start and stop tomcat is to have separate startup scripts in your rc.d directory or perhaps /Library/StartupItems on osx, dont ask me about windows as i think its silly (at least in terms of running java hosting). And you can simply run them all as a single tomcat user.
The server.xml's need to be different for each host, the jk port numbers are the biggest admin hassle. But this is how you have all hosts connecting to port 80.. This involves mod_jk apache and such like, there are plenty of postings in the archives on this. IMO stick to jk1 , I have jk1 and 2 running, and 2 involves more configuration hassles.
Mark
On 10 Sep 2004, at 16:42, Bedrijven.nl wrote:
I think I want to use several Tomcat installations, since the applications
are not so dependent on one jvm.
So how could I do that?? (especially all connect to port 80)
Maarten
-----Oorspronkelijk bericht----- Van: Bedrijven.nl [mailto:[EMAIL PROTECTED] Verzonden: Friday, September 10, 2004 1:54 PM Aan: 'Tomcat Users List' Onderwerp: 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
