Hi Lee, I found this page that explain exactly what you want...
http://www.codesta.com/knowledge/technical/tomcat_warp_apache/index.jsp I hope this help you... []'s Tiago. -----Mensagem original----- De: Lee Grey [mailto:leegrey@;mindspring.com] Enviada em: sexta-feira, 8 de novembro de 2002 23:33 Para: Tomcat Users List Assunto: Configuring multiple domains and web applications I have three different web applications I want to run on Tomcat. Each needs to run under its own domain, let's call them http://www.a.com, http://www.b.com, and http://www.c.com. I have a couple of Linux boxes to configure in any way that makes sense. At the moment, I only have http://www.a.com running, and it runs on Apache and Tomcat in the same box. Now, I'm ready to deploy http://www.b.com, which is a different application entirely. And I'm not sure how to go about this. For example, do I need to run a separate instance of Tomcat for this second application, or can I run this web app on a different port under the same instance of Tomcat? Or can it even run on the same port, just with a different directory mapping? And how do I point http://www.b.com to the right Tomcat application from Apache? I've already done this once with http://www.a.com, but I don't seem to have enough information to extrapolate it for multiple Tomcat applications. This is essentially the kind of issue a servlet-friendly web hosting service would face. How do I set up my servers to handle multiple applications and domains? In my case, I can trust all the apps, since they are all under my control, but the overall objective is still the same. One other factor is that I'd like the ability to utilize multiple Linux boxes to spread the load. I don't necessarily have to do load-balancing. Each box could be dedicated for a particular domain and Tomcat application, if that is simpler and easier. But there's got to be an Apache server in front, distributing the traffic to the appropriate Tomcat server. I guess one thing that would be helpful would be sample Apache httpd.conf and Tomcat server.xml files that allow for more than one Tomcat application. Does anyone have such examples they'd be willing to share? Any pointers, any answers, anything would be greatly appreciated! BTW, I'm currently running Red Hat 7.2, Apache 1.3, and Tomcat 4. Thanks, Lee Grey Grey Matter http://www.URLinOne.com -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
