Hola, If you're defining the host in server.xml, you can make webapps/foo/bar the host's appBase.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Thursday, September 02, 2004 11:36 AM >To: [EMAIL PROTECTED] >Subject: Tomcat connected to apache via proxy gives virtual host problems > >Hi, > >We are running tomcat5, proxied to apache. So far this has worked fine, >but now we want to attach a virtual host to a subdirectory. So we have > >host1.com maps to webapps/ >host2.com maps to webapps/foo/bar > >Now, on host2.com paths are relative to webapps rather than >webapps/foo/bar. And thus, images can't be found and sessions don't work. >I'm inclined to think since everything is proxied to localhost, tomcat >doesn't even know it's supposed to be a virtual host. > >Is there a solution to this? > >TIA, Sandor Vroemisse > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
