tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciej Zabielski <>
Subject RE: mod_jk problem related to multiple hosts on Apache and Tomcat
Date Wed, 07 Oct 2009 20:41:46 GMT
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:
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

I beleive this solves my problem for now - I will have to do some test tomorrow, but looks

What I still don't know, how to achieve that sort of functionality for many hosts using only
Example: -> localhost:8080/app1 -> localhost:8080/app2

As opposed to the solution that I have now: -> localhost:8080/app1 -> 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 []
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

On Wed, Oct 7, 2009 at 8:51 PM, Caldarale, Charles R <> wrote:

> > From: Maciej Zabielski []
> > 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></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:
For additional commands, e-mail:

View raw message