Thank you to those who have commented on the attached document.  Before I
revise it fully, I have two questions to pose to the group.

First, there was real distaste for my use of mod_rewrite in Apache to
redirect base URLs to their appropriate VirtualHosts ajp worker.

My goal was to redirect a client who simply put in 

http://www.site1.com/
to
http://www.site1.com/site1contextname/index.jsp

In Apache I used....
<VirtualHost 192.168.1.100:80>
        DocumentRoot “/contexts/site1/webapps/site1contextname
        ServerName site1.yourdomain.com
        ServerAdmin email of server admin
        JkMount /* ajp13_site1
        JkMount /servlet/* ajp13_site1
        JkMount /site1contextname/*.jsp ajp13_site1
        RewriteEngine On
        RewriteRule ^/$ /site1contextname/index.jsp [NC,R]
 </VirtualHost>

some people recommended I use mod_webapp while other recommended that I
use DirctoryIndex, but I am still unclear what is the best and fastest
method to do the redirect with mod_jk/Tomcat 3.2.4.  (ONE interesting note
was that Rewrite would only work if I put it after the JkMount Directives.
 When i put it before the JkMount's the incoming URL would be sent to the
index.html file in /$TOMCAT_HOME/webapps/ROOT. I belive this may have
something to do with web.xml but am not sure.)

My second question pertains to setting up a separate directory for each
Tomcat instance.  I copied the entire contents of $TOMCAT_HOME into a
separate directory that I set-up for each new site.

ex.
mkdir /context
mkdir /contexts/site1
mkdir /contexts/site2
cp -R /$TOMCAT_HOME /contexts/site1
cp -R /$TOMCAT_HOME /contexts/site2

I am aware that i can put all my site's contexts into the webapps
directory of /$TOMCAT_HOME, but I do have the space on my server to keep
the sites in their own directories and was worried that a single directory
structure would cause problems when I add lots of sites to this server. 
Any thoughts?

As i get more information I hope to modify the attached document and
resubmit it.  Thanks again for your time and comments.


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

Reply via email to