1

I am setting up a server where "domain1.com" and "domain2.com" should be served by Apache HTML/PHP server, while "app.domain1.com" and "domain3.com" should be served by Apache Tomcat.

I want to accomplish this using Mod_JK, and I found some useful information regarding config of mod_jk (with the aid of tomcat's workers)... but how do I configure for the specific scenario I have described above, wherein one domain is shared b/w Apache and Tomcat, one domain is served by Apache while a third domain is entirely served by Tomcat?

  • from what I read, we can redirect any request for servlets/jsps/other static files to specific 'workers'- however what i dont understand is, where do i specify the specific domain for which i want requests to be sent to one worker, (i.e. app1.domain1.com->worker1 and app2.domain2.com->worker2)-- the syntax for the example i read is something like "JkMount /examples/servlet/* worker1" But I cannot see anything to specify the domain on which request is being made...hence I am confused... – Arvind May 4 '12 at 9:49
2

You place the JkMount directives inside the httpd.conf virtual host you want them to apply to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.