Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
What have you tried? –  Decado May 4 '12 at 5:38
    
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

1 Answer 1

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

 
discard

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.