Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am setting up a server where "" and "" should be served by Apache HTML/PHP server, while "" and "" 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?

share|improve this question
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.>worker1 and>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
up vote 2 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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