For TC 4 the is an example for virtual hosts with mod_jk: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
For TC 3.2 there is a how-to for virtual hosts with mod_jk: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html #virtual_hosting http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html#s9 What's missing in all 3 docs, is how to setup the worker.properties for named vitual hosts that share the same IP. I see two way to achive that: - Create two worker.properties files and use the JkWorkersFile inside the virtual host definition to point to the right file <VirtualHost www.host1.tld> DocumentRoot /web/host1 ServerName www.host1.tld JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkWorkersFile /www/host1/conf/workers.properties JkLogFile /www/host1/logs/mod_jk.log JkLogLevel info </VirtualHost> <VirtualHost www.host2.tld> DocumentRoot /web/host2 ServerName www.host2.tld JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkWorkersFile /www/host2/conf/workers.properties JkLogFile /www/host2/logs/mod_jk.log JkLogLevel info </VirtualHost> - Define two workers in worker.properties like this: <VirtualHost www.host1.tld> DocumentRoot /web/host1 ServerName www.host1.tld JkMount /*.jsp host1 JkMount /servlet/* host1 </VirtualHost> <VirtualHost www.host2.tld> DocumentRoot /web/host2 ServerName www.host2.tld JkMount /*.jsp host2 JkMount /servlet/* host2 </VirtualHost> worker.list=host1, host2 # Definition for Ajp13 worker # worker.host1.port=8009 worker.host1.host=localhost worker.host1.type=ajp13 worker.host2.port=8010 worker.host2.host=localhost worker.host2.type=ajp13 I don't know if any of the both ways work, haven't tried them. > -----Ursprüngliche Nachricht----- > Von: Neo Thinker [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 28. Februar 2002 01:53 > An: [EMAIL PROTECTED] > Betreff: Tomcat 4 + Apache + virtual name-based domains + separate > instances <snip/> > I am convinced that if you use mod_webapp or mod_jk you CANNOT have > virtual hosts run their own instances of Tomcat (I am not talking > standalone here, I am talking Apache virtual hosts). The closer I read > the docs on these modules, the more I thought that they didn't support > it, even though they don't come right out and say it. <snip/> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>