Dear Dan,

A few weeks ago you commented on my "Multiple Tomcat JVM's" posting. 
Thank you for you comments.  i have had several similar comments to yours
about my use of mod_rewrite to redirect URL's to their approporiate
JkMounted contexts.  If you remember, my httpd.conf had the following....

<VirtualHost 192.168.xxx.xxx:80>
DocumentRoot /contexts/site1/webapps/site1contextname/
ServerName site1.domain.com
JkMount /*      ajp13_site1
JkMount /servlet/*      ajp13_site1
JkMount /site1contextname/*.jsp    ajp13_site1
RewriteEngine  On
RewriteRule   ^/$   /site1contextname/index.jsp  [NC,R]
</VirtualHost>

The rewrite rules only worked if I put them after the JkMount's.  

Ultimatley this set-up has worked.  When I type in
http://site1.domain.com/  I get automatically redirected to the correct
/site1contextname/index.jsp

I know you were using mod_webapp.  I am unfamilier with mod_webapp.  Does
it work with or instead of mod_jk and how might it be better?  Also i am
using Tomcat 3.2.4.  Does mod_webapp work with this too?  Lastly, if you
do have a config file for mod_webapp i would greatly appreciate an
apportunity to view it.  

Thanks for you time, Overall I am just trying to find the fastest way to
redirect my clients to the correct context without forcing them to type in
the context after the URL.

Rob


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to