Thank you both for your support! You are absolutely right. My thinking (rather unexperienced, because this is my first month with linux / tomcat) was that by setting: docBase="/var/lib/tomcat5/webapps/alfresco" alfresco would become "root" of localhost (as it actually does?) and therefore would be not accessible via http://localhost:8080/alfresco (but it still is!) As I have said, this address is needed for Share site as changing endpoints does not always work
I beleive this solves my problem for now - I will have to do some test tomorrow, but looks promising! What I still don't know, how to achieve that sort of functionality for many hosts using only localhost. Example: a_domain.com -> localhost:8080/app1 b_domain.com -> localhost:8080/app2 As opposed to the solution that I have now: a_domain.com -> localhost:8080/app1 b_domain.com -> host2:8080/app2 Well, I would have to think it over tommorow as its almost midnight in country! :) Once more, thank you very much for pointing out my mistake! _______________________________________ From: Tsirkin Evgeny [tsir...@gmail.com] Sent: Wednesday, October 07, 2009 8:50 PM To: Tomcat Users List Subject: Re: mod_jk problem related to multiple hosts on Apache and Tomcat What Chuck means is that you need docBase="/var/lib/tomcat5/webapps/alfresco" On Wed, Oct 7, 2009 at 8:51 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Maciej Zabielski [mailto:m...@tessel.pl] > > Subject: mod_jk problem related to multiple hosts on Apache and Tomcat > > > > Tomcat Host > > <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" > autoDeploy="true" > > xmlValidation="false" xmlNamespaceAware="false"> > > <Context path="" docBase="/var/lib/tomcat5/webapps"/> > > <Alias>alfresco.domain.com</Alias> > > </Host> > > I can't advise you about the httpd-related stuff, but the above is clearly > wrong. The docBase attribute of a <Context> must not be the same as the > <Host> appBase; docBase should point to some directory or .war file directly > *underneath* the appBase directory. (Your other <Host> element is correct.) > > - Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org