Mod_jk Tomcat VirtualHost
Posted
by user37143
on Server Fault
See other posts from Server Fault
or by user37143
Published on 2010-05-13T15:32:04Z
Indexed on
2010/05/13
15:34 UTC
Read the original article
Hit count: 323
Hi,
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 app1.domain.com will point to app1 in tomcat and app2.domain.com will point to app2 in Tomcat but it's not working.
I have the Vhost as
ServerName www.app1.domain.com ServerAlias app1.domain.com DocumentRoot "/opt/tomcat/webapps/app1" DirectoryIndex index.jsp Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all
The following section added for JkJkMount /.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?
Thanks
© Server Fault or respective owner