John,

Thanks much..

Reading this I take it that by setting the DocumentRoot to the Apache/htdocs directory (or where that might be..) ..that is sufficient... Hmm... way, way to simple...<G>

Now, is there a way to set this up in the server.xml so that autoconfig generates that setting...?? Or am I forced to hand set this for each virtual host.. (I have a LOT of these to manage)...

John..

John Sidney-Woollett wrote:

John B. Moore said:


Thanks for responding.. And yes, I keep hearing that one can do this....

  ... But...<G>  I'm slow I guess, because that still does not give me
a hint as to "HOW" that is to be configured.. Do you have some virtual
host directives that do this that I can use as examples..

Maybe my problem is that I am thinking I could have the static
pages located under Apache/htdocs and the jsp pages under
Tomcat/webapps.. I can't find and example that combines the standard
Apache virtual host directives with what is needed to also direct the
jsp to Tomcat.. I can easily to each separately, but have yet to find a
way to do "both"



Here you go...


# External IP Address: xxx.xxx.xxx.xxx
<VirtualHost 192.168.1.111:80>
   ServerName test.mydomain.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/www/test.mydomain.com
   ErrorLog /var/log/httpd/test.mydomain.com/error_log
   CustomLog /var/log/httpd/test.mydomain.com/access_log combined
   JkMount /someurl/MySpecialServlet worker1
   JkMount /admin/* worker1
   JkMount /manager/* worker1
   JkMount /*.jsp worker1
</VirtualHost>

Create as many JKMount entries as you need to map all your servlets and
JSPs. Whatever doesn't match any of the JkMount entries will be handled by
Apache from the document root (/var/www/test.mydomain.com in this
example).

You can even route the different servlet/jsp requests to different tomcat
workers (if that is needed or works for you).

Hope that helps.

John Sidney-Woollett


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to