Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have two applications in Tomcat app1 and app2.

I have mod_jk configured for Apache front end and I am able to get the Tomcat index.jsp

Now I created two virtualhosts for app1 and app2 so that will point to app1 in tomcat and will point to app2 in Tomcat but it's not working.

I have the Vhost as

<VirtualHost *:80>
DocumentRoot "/opt/tomcat/webapps/app1"
<Directory "/opt/tomcat/webapps/app1">
  DirectoryIndex index.jsp
  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
###### The following section added for Jk
JkMount /*.do ajp13
JkMount /*.jsp ajp13
JkMount / ajp13
JkMount /* ajp13
JkUnMount /*.php ajp13
JkUnMount /*.gif ajp13
JkUnMount /*.html ajp13
JkUnMount /*.css ajp13
JkUnMount /*.png ajp13
JkUnMount /*.jpg ajp13

But this did not work both the sub domains loads Tomcat's index.jsp.

Can some one help me?


share|improve this question
Abandon mod_jk and use mod_proxy_ajp instead. – al. Dec 23 '11 at 10:11

I got it I done it through a RewriteRule.

Thanks, Anoop

share|improve this answer
It would have been nice if you posted your solution here. – delux247 Jun 25 '10 at 21:14
Hi, Sorry I was on vacation. Did you get it solved? Do you need any help? – user37143 Jul 9 '10 at 5:57
@user37143 I think the point is to catalog the solution here so other people can benefit from it. – Corey S. Apr 4 '11 at 2:00

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.