You have to start several tomcat instances. Make sure you configure them on
different ports for ajp12 and then ajp-mount those in your virutal hosts
parts of httpd.conf

Something like this:
in server.xml's:
tomcat1 listening on 8007
tomcat2 listening on 8008
...

worker.properties:
worker.ajp-tomcat1.port=8007
worker.ajp-tomcat2.port=8008
...

httpd.conf
<VirtualHost 1.2.3.4>
ServerName host1.name.com
JkMount /foo/servlet/* ajp-tomcat1
</VirtualHost>

<VirtualHost 1.2.3.4>
ServerName host2.name.com
JkMount /foo/servlet/* ajp-tomcat2
</VirtualHost>


Regards,
Andreas

> -----Original Message-----
> From: Dominique BATARD [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 06, 2000 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: jsp & mod_jk problem
> 
> 
> Thank you for your answer, I'll try with ajp12
> 
> By the way, do you have any idea on how to setup tomcat and 
> apache to be
> able to serve several NAMED virtual hosts, each one having 
> his own JVM, and
> to be able to restart any vhost tomcat and jvm without having 
> to restart all
> the vhosts AND apache.
> 
> The tomcat doc is rather scarse on the subject.
> 
> Dominique
> 
> ----- Original Message -----
> From: "GOMEZ Henri" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 06, 2000 2:47 PM
> Subject: RE: jsp & mod_jk problem
> 
> 
> > >I tried to switch to mod_jk and ajp13 and got a strange result :
> > >one jsp containing only FrameSets and Frames : some of the src
> > >files, which
> > >are jsp, don't show in the right frame, and particularely 
> one jsp shows
> > >twice instead of once.
> >
> > Did you use .forward ?
> > It's a known problem with ajp13 and RequestDispatcher
> >
> > >Going back to mod_jserv and ajp12, this jsp is ok.
> >
> > I also reverted to ajp12 but with mod_jk.
> >
> > >Is it a beta problem ?
> >
> > YES ;-)
> >
> 

Reply via email to