| hsakalla@gmail.com 2005-08-25, 6:06 pm |
| Hello,
Here is my problem. I have apache 2.0.46 and tomcat installed and
working together on the same server. I have multiple websites confiured
using VirtualHost. What I would like to do, is forward the documentroot
for each virtualhost to a specific application in tomcat:
http://www.abc.com --> http://mytomcat.server.com:8080/abc
http://www.edf.com --> hhtp://mytomcat.server.com:8080/edf
I have done it before using BEA Weblogic, but can't figure it out with
tomcat. Is this doable?
Here is my current mod_jk.conf. Only http://www.abc.com/abc and
http://www.edf.com/edf work:
<IfModule !mod_jk.c>
LoadModule jk_module "/etc/httpd/modules/mod_jk.so"
</IfModule>
NameVirtualHost xx.xx.xx.xx
<VirtualHost xx.xx.xx.xx>
ServerName www.abc.com
JkMount /abc ajp13
JkMount /abc/* ajp13
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
ServerName www.edf.com
JkMount /edf ajp13
JkMount /edf/* ajp13
</VirtualHost>
Thanks,
Hani
|