I'm not sure if this will fix your problem or not, but I believe it's recommended to use mod_proxy_ajp instead of mod_jk with Apache 2.2.x. http://httpd.apache.org/docs/2.2/mod/mod_proxy_ajp.html , Josh.
> -----Original Message----- > From: Naren Koka [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 16, 2006 8:40 AM > To: Tomcat Users List > Subject: JK Connector not distinguishing between Virtual hosts > > I am using mod_jk with Tomcat 5 and Apache 2.2. JK is > directing to the default Host in Tomcat Server. It is not > able to distinguish the sites. When we go to abc2.com, it > shows half the content from abc1.com, which has a lot of > files with the same name as abc2.com. Is this a known bug? > Anybody has seen it? > > Ealier, I was using WebApp connector for Name Based Virtual > Hosting on my Apache server. Everything was working fine. > Here is the httpd.conf when using WebApp. > > LoadModule webapp_module modules/mod_webapp.so > WebAppConnection conn warp localhost:8008 > > NameVirtualHost 192.168.1.201 > > <VirtualHost 192.168.1.201> > ServerName "www.abc.com:80" > ServerAdmin "[EMAIL PROTECTED]" > DocumentRoot "/var/abc" > ErrorLog "/var/abc/logs/errorlog" > WebAppDeploy . conn / > </VirtualHost> > > <VirtualHost 192.168.1.201> > ServerName "www.abc2.com:80" > ServerAdmin "[EMAIL PROTECTED]" > DocumentRoot "/var/abc2" > ErrorLog "/var/abc2/logs/errorlog" > WebAppDeploy . conn / > </VirtualHost> > > When I tried to upgrade to Tomcat 5, I found out that WebApp > is deprecated and we should be using the JK connector. I > changed the httpd.conf to: > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile conf/workers.properties > > NameVirtualHost 192.168.1.201 > > <VirtualHost 192.168.1.201> > ServerName "www.abc.com:80" > ServerAdmin "[EMAIL PROTECTED]" > DocumentRoot "/var/abc" > ErrorLog "/var/abc/logs/errorlog" > JkMount /*.jsp worker1 > JkMount /*.do worker1 > </VirtualHost> > > <VirtualHost 192.168.1.201> > ServerName "www.abc2.com:80" > ServerAdmin "[EMAIL PROTECTED]" > DocumentRoot "/var/abc2" > ErrorLog "/var/abc2/logs/errorlog" > JkMount /*.jsp worker2 > JkMount /*.do worker2 > </VirtualHost> > > > Here is my Tomcat configuration > > <Server> > <Service> > <Engine> > <Host name="abc.com" debug="0" appBase="/var/abc" > unpackWARs="false"> > <Context path="" docBase="/var/abc" /> > </Host> > > <Host name="abc2.com" debug="0" appBase="/var/abc2" > unpackWARs="false"> > <Context path="" docBase="/var/abc2" /> > </Host> > </Engine> > </Service> > </Server> > > I had to change the servlets to be named as .do and then add > the JKMount statement, otherwise the servlets were not executing. > > Any help is appreciated. > > Thanks, > Naren > > > > --------------------------------------------------------------------- > 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]