Hello, This is an urgent request. Any feedback is really appreciated.
I have two web applications (let us call main app., and helper app.) running on Tomcat with an Apache server in from of Tomcat. Both Apache and Tomcat are running on the same host. The first web app on Tomcat is running as ROOT webapp. I have two websites mapped to the single IP address of the host. I want the right application accessed depending on the domain name used. - For example, for the domain name "www.app1.com, I want the first tomcat web app reached. - for the domain name "www.app2.com" I want the second web app reached. Here is the config, I am using: = In Apache httpd.conf file: NameVirtualHost *:80 <VirtualHost www.app1.com> ServerName www.app1.com ProxyPreserveHost On ProxyPass / http://localhost:8080/app1 ProxyPassReverse / http://localhost:8080/app1 </VirtualHost> <VirtualHost www.app2.com> ServerName www.app2.com ProxyPreserveHost On ProxyPass /totelistm http://localhost:8080/app2 ProxyPassReverse /totelistm http://localhost:8080/app2 </VirtualHost> Here is the uriworkmap.properties file for mod_jk worker.list=loadbalancer,status /=loadbalancer /*=loadbalancer /app2=loadbalancer /app2/*=loadbalancer Thanks /