tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: tomcat and virtual hosts
Date Thu, 02 Oct 2003 02:24:12 GMT
<Host name="www.site1.com" appBase="/export/home/webroot/site1">
    ....
    <Context path="" docBase="/export/home/webroot/site1/ROOT">
    ....
    </Context>
</Host>

Better yet, make the Context docBase = "ROOT" so it is relative to the 
Host's appBase.

Put JSP in /export/home/webroot/site1/ROOT.  Put WEB-INF in the same 
location.  Do the same for site 2.

John

Johan Louwers wrote:

>I have set up tomcat and apache... bind them with a JK2 connector both on
>port 80. I have 2 domains running on the machine. I made the virtual hosts
>work in apache with editting httpd.conf  The apache docs are located on the
>following location:
>
>/export/home/webroot/site1     (www.site1.com)
>/export/home/webroot/site2     (www.site2.com)
>
>I would like to access jsp files on both the website's like
>www.site1.com/index.jsp and www.site2.com/index.jsp and store the jsp files
>at the same location as the html docs. This means locate them in
>/export/home/webroot/site1 and /export/home/webroot/site2
>
>How do I make tomcat understeand that it must be running jsp files on this
>locations. Anybody knows how to do this? You have to add some things to
>server.xml i know that buth what and do  have to edit httpd.conf in some way
>to make this work? A working example of a server.xml/httpd.conf file is
>welcome and also any tip hint and clue :-)
>
>Thanks already,
>Johan.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message