Thanks for the reply Anthony, I'm afraid the first solution you mentioned has gone right over my head! What d'you mean by a Service?
Unfortunately there isn't another machine I can use for this. I'm hoping that the easiest way to do this is to run two instances of tomcat, mainly because I'm up against it and the site I'm working on is supposed to be going live very soon, so easy is good right now ;-) I run multiple instances easily on windows, for development at home I have three different versions of tomcat running from different directories and litening on different ports, they all run together fine. However, I installed Tomcat on the Linux server from the rpm - which distributes the installation accross the file system, so I have the scripts to run tomcat in /usr/bin, the config files in /etc/tomcat3 and the web applications in /var/webapps. How do I set about running a second instance of tomcat? I've been looking at the workers.properties file, which seems to suggest that the way to do this is to set up another worker. If this is the case, would both instances be started and stopped together automagically? I do apologise if theres something obvious I'm missing, but I've been trawling the documentation for a while and it doesn't seem to be covered. The majority of the posts I've found in the mailing lists are for tomcat 4.X Any help greatly appreciated, even if its just a pointer to something in the documentation I've missed! thanks, Paul >From: "Anthony Eden" <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Subject: RE: intranet/virtual host >Date: Thu, 30 May 2002 15:48:26 -0400 > >You might be able to do it by: > >1.) Define a new Service, called for example "Intranet" >2.) Define a Connector in that service which listens on a port like 8090 >3.) Define an Engine in that service to contain the Host entries >4.) Define the Host "localhost" in that engine pointing to your intranet >files > >Of course, what you should REALLY do is probably run a second machine if >you have the resources. > >You could also run two instances of Tomcat as you mentioned. > >Finally, you might try adding a connector on a new port and then see if you >can specify a virtual host as: > ><Host name="localhost:8090" appBase="/path/to/intranet/pages/"> > >I have never tried this though, so I don't know if it will work. > > >Good luck. > >Sincerely, >Anthony Eden > > > -----Original Message----- > > From: Edam Cheeseman [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 30, 2002 10:09 AM > > To: [EMAIL PROTECTED] > > Subject: intranet/virtual host > > > > > > Hi, > > > > I'm running apache-1.3, tomcat-3.3.1, redhat Linux-7.2 > > > > I have a servlet which handles uploading new data to a database table >which > > is read from by the publicly accessable website. > > > > Ideally I'd like to set up some kind of intranet running on the websever > > which is not accessable from the outside - like say, run the intranet on > > port 81 which is blocked from access by the firewall - on which this >servlet > > runs. > > > > can anyone point me in the right direction as to how to go about setting > > this up? Is virtual hosts the answer? And if so can I set it up so that >it > > runs on a seperate port? Would I need a second instance of tomcat to do > > this? > > > > thanks for any advice, > > > > Paul > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > > -- > > To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
