That's it, but your mod_jk.conf file doesn't look right. "Host" in server.xml = virtual host
For every virtual host you want Tomcat to server content for, you need a <Host></Host> container with an appropriate name. If you're still having problems after that, the best thing would be for you to post your mod_jk.conf file (don't copy and paste, but attach the actual file), along with workers.properties and server.xml. The mod_jk.conf file you are getting from the ApacheConfig class in server.xml doesn't look like anything I have seen before. John > -----Original Message----- > From: Xiongfei Wang [mailto:[EMAIL PROTECTED] > Sent: Friday, February 28, 2003 3:18 PM > To: Tomcat Users List > Subject: RE: how to get apache-tomcat virtual host work? > > > Thanks for your email > > in httpd.conf > > I have > <IfModule !mod_jk.c> > LoadModule jk_module modules/mod_jk.so > </IfModule> > to load mod_jk.so > > Because for my default host apache-tomcat works seem fine. > in order to let apache-tomcat workd for host2 what else should i make > change beside adding <host></host> to server.xml? > > Thanks. > > > > On Fri, 28 Feb 2003, Turner, John wrote: > > > > > Also, if you are using the mod_jk.conf style, the only > thing in httpd.conf > > should be: > > > > Include /usr/local/tomcat/conf/auto/mod_jk.conf > > > > Also, are you loading the mod_jk.so module in httpd.conf? > > > > John > > > > > -----Original Message----- > > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED] > > > Sent: Friday, February 28, 2003 2:54 PM > > > To: Tomcat Users List > > > Subject: RE: how to get apache-tomcat virtual host work? > > > > > > > > > my previous email should be" I did NOT create mod_jk.conf > by hand." > > > because i do not know how to creat mod_jk.conf by hand. > > > > > > > > > > > > On Fri, 28 Feb 2003, Turner, John wrote: > > > > > > > > > > > Take out the lines that look like this: > > > > > > > > JkMount /someURL ajp13 > > > > > > > > The typical setup is something like this: > > > > > > > > JkMount /*.jsp ajp13 > > > > JkMount /servlet/* ajp13 > > > > > > > > John > > > > > > > > > -----Original Message----- > > > > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED] > > > > > Sent: Friday, February 28, 2003 2:36 PM > > > > > To: Tomcat Users List > > > > > Subject: RE: how to get apache-tomcat virtual host work? > > > > > > > > > > > > > > > I did create it by hand. > > > > > > > > > > I just delete mod_jk.conf and restart tomcat and > > > mod_jk.conf has same > > > > > thing inside as before. > > > > > In httpd.conf > > > > > I have > > > > > > > > > > Include /usr/local/tomcat/conf/auto/mod_jk.conf > > > > > > > > > > <IfModule mod_jk.c> > > > > > JkWorkersFile > "/usr/local/tomcat/conf/jk/workers.properties" > > > > > JkLogFile "/usr/local/tomcat/logs/mod_jk.log" > > > > > JkLogLevel debug > > > > > JkMount /examples ajp13 > > > > > JkMount /examples/* ajp13 > > > > > > > > > > </IfModule> > > > > > > > > > > > > > > > Any more advices? Thanks > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]