I have used something like the following with mod proxy.
This goes in your apache config file <VirtualHost 10.0.0.10:80> ServerName www.domainname.co.uk ServerAlias www.domainname.com ProxyPass / http://192.168.100.20:8080/yourwebapp/ ProxyPassReverse / http://192.168.100.20:8080/youwebapp/ ProxyRequests off ErrorLog logs/youwebapp-error_log TransferLog logs/youwebapp-access_log </VirtualHost> On 12/28/06, Gormley, Josh <[EMAIL PROTECTED]> wrote:
Does anybody have a good tutorial on how to do this with Apache sitting in front of Tomcat? I'd like to have a single server with multiple one-to-one domainname-to-webapp apps running in Tomcat such that I can hot deploy one webapp in Tomcat without affecting the other webapps. Apache VirtualHost -- Tomcat webapp location foo.mydomain.com -- webapps/foo bar.mydomain.com -- webapps/bar eggs.mydomain.com -- webapps/eggs Thanks, JG -----Original Message----- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:33 AM To: Tomcat Users List Subject: Re: Virtual Hosts On 12/27/06, VĂctor Fragoso <[EMAIL PROTECTED]> wrote: > ... but when I try it, just a blank page shows up And there are no errors in the logs? Look there first. Also, perhaps this will help: <http://webtuitive.com/samples/virtual-hosting-howto.jsp> If not, post the relevant parts of your server.xml and Context files... -- Hassan Schroeder ------------------------ [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]