On Tue, Mar 23, 2004 at 04:14:56PM +0100, Michael Kastner wrote: > > >Depends on what you mean by "virtualhosts", if you have one tomcat > >server with several virtualnamehosts it's possible to do it with one > >ajp > >connector. > > > >http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html > > > >describes howto setup virtualhosts with jk2. The setup for jk1 is > >very > >similar. > > thanks for your reply. Yes indeed, I mean virtual name hosts. I am > wondering, why there is no example in the mod_jk doc but in the mod_jk2 doc. > > What do you mean with "similar"? What exactly is the difference? > >
It has been a while since I've setup apache with tomcat virtual hosting, so I dont know it by heart. Basically you've to define the hosts in the server.xml as describes in the howto and configure jk1 as usual. Add the JkMounts within the virtualhosts in apache's httpd.conf (the virtual hosts in apache must have the same name as in tomcat) : NameVirtualHost your_ip:80 <VirtualHost your_ip> ServerName site1 DocumentRoot /var/www/site1 JkMount /servlet/* ajp13 </VirtualHost> <Virtualhost your_ip> ServerName site2 DocumentRoot /var/www/site2 JkMount /servlet/* ajp13 </VirtualHost> If I recall it correctly... -- Staf Wagemakers email: staf at patat.org Homepage: http://staf.patat.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
