Apache Server configuration support - mod_jk path prepend

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2005 > mod_jk path prepend





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_jk path prepend
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com