tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John B. Moore" <>
Subject Re: Virtual Hosting Revisited - Apache serving static pages..???
Date Thu, 15 Apr 2004 15:40:58 GMT

    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 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:
>    ServerName
>    ServerAdmin
>    DocumentRoot /var/www/
>    ErrorLog /var/log/httpd/
>    CustomLog /var/log/httpd/ combined
>    JkMount /someurl/MySpecialServlet worker1
>    JkMount /admin/* worker1
>    JkMount /manager/* worker1
>    JkMount /*.jsp worker1
>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/ in this
>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:
>For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message