thanks, that did exactly what i wanted! tamsin -----Original Message----- From: Dieter Kaltenbach [mailto:Dieter.Kaltenbach@;unitedplanet.de] Sent: 30 October 2002 09:19 To: Tomcat Users List Subject: AW: apache/tomcat multiple hosts
Hi, i guess you need a second tomcat host within the same engine container according to your apache virtual host. Something like: <Host name="www.foo.com" ...> <Context docBase="/home/foo" ... /> </Host> <Host name="demo.foo.com" ...> <Context docBase="/home/foodemo" ... /> </Host> Hope it helps. -----Ursprüngliche Nachricht----- Von: tamsin [mailto:tamsin@;anorakgirl.co.uk] Gesendet: Dienstag, 29. Oktober 2002 17:39 An: [EMAIL PROTECTED] Betreff: apache/tomcat multiple hosts hi, i'm using apache, tomcat 4.1 and mod_jk i have apache configured: <VirtualHost 1.2.3.4:80> ServerName www.foo.com DocumentRoot /home/foo JkMount /servlet/* worker1 </VirtualHost> and in server.xml: <Context path="" docBase="/home/foo" debug="0" reloadable="false" crossContext="false"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="foo." suffix=".txt" timestamp="true"/> </Context> this all works fine. however, i want to serve a copy of the foo site from demo.foo.com i.e. i want to add something like: <VirtualHost 1.2.3.4:80> ServerName demo.foo.com DocumentRoot /home/foodemo JkMount /servlet/* worker1 </VirtualHost> but i'm not sure how to configure tomcat for the second context? thanks for any help, tamsin -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002 -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>