Re: Support multiple apache contexts via one tomcat webapp context
On Mon, Jun 14, 2010 at 10:26 PM, Andrew Bruno andrew.br...@gmail.com wrote: I am trying to setup Apache with JkMount to tomcat to dynamically handle different contexts in Apache, but always use the same context in Tomcat. That statement doesn't make sense to me, given your example, but... http://apachefrontenddomain.com.au/a/customer-1.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-2.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-3.com - jk ajp to - http://tomcatserver:8019/webapp2 http://apachefrontenddomain.com.au/a/customer-4.com - jk ajp to - http://tomcatserver:8039/webapp4 Doe anyone know how to do this? Do I need to use Aliasing or Rewriting? I would just use mod_proxy, but I'm a keep-it-simple kinda guy :-) FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Support multiple apache contexts via one tomcat webapp context
below... On Jun 15, 2010, at 9:06 AM, Hassan Schroeder wrote: On Mon, Jun 14, 2010 at 10:26 PM, Andrew Bruno andrew.br...@gmail.com wrote: I am trying to setup Apache with JkMount to tomcat to dynamically handle different contexts in Apache, but always use the same context in Tomcat. That statement doesn't make sense to me, given your example, but... http://apachefrontenddomain.com.au/a/customer-1.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-2.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-3.com - jk ajp to - http://tomcatserver:8019/webapp2 http://apachefrontenddomain.com.au/a/customer-4.com - jk ajp to - http://tomcatserver:8039/webapp4 Doe anyone know how to do this? Do I need to use Aliasing or Rewriting? I would just use mod_proxy, but I'm a keep-it-simple kinda guy :-) FWIW- I've moved away from Apache as a proxy entirely. I use HAProxy with ACLs. It's more efficient and flexible, IMHO, and the only thing I really need Apache for is serving PHP pages. That said, it seems to me it would simpler to proxy /a and have a servlet look at PATH_INFO, then forward to whatever path or context you want. Jon Brisbin Portal Webmaster NPC International, Inc. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Support multiple apache contexts via one tomcat webapp context
I am trying to setup Apache with JkMount to tomcat to dynamically handle different contexts in Apache, but always use the same context in Tomcat. e.g. http://apachefrontenddomain.com.au/a/customer-1.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-2.com - jk ajp to - http://tomcatserver:8009/webapp http://apachefrontenddomain.com.au/a/customer-3.com - jk ajp to - http://tomcatserver:8019/webapp2 http://apachefrontenddomain.com.au/a/customer-4.com - jk ajp to - http://tomcatserver:8039/webapp4 Doe anyone know how to do this? Do I need to use Aliasing or Rewriting? I am using Apache 2.2 and Tomcat 6 Cheers Andrew - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org