tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Shared SSL
Date Fri, 31 Dec 2010 02:06:35 GMT
Hash: SHA1


On 12/29/2010 2:52 PM, Surya Mohan wrote:
> I am trying to use a shared SSL to configure the app for multiple
> clients using Tomcat 5.5.

What do you mean when you say "shared SSL"? Any number of clients can
use an SSL setup.

> It works fine for one client and trying to share the same for another client. 

Have you tried the second client? I'm unsure what you mean by "client":
I suspect you mean "second hostname" given the other information in your

> SSL :
> <Host name="" appBase="webapps" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

Must you specify the hostname for this <Host>?

> <Context

Don't do that: put <Context> elements into separate deployment
descriptors in $TOMCAT_HOME/conf/[hostname]/[appname].xml

> path="/web"

Don't do that: the name of the XML file will specify the webapp's path.

> crossContext="false"

This is the default, and there is no need to specify this.

> debug="0" /> 

The "debug" attribute is not recognized. Are you sure you are looking at
the right documentation for your version of Tomcat? You may want to take
another look.

> The above works fine, but when I try to add another client,
> <Host name=""

This <Host> has the same name as the above: that's not legal (nor is it
necessary: if you want two webapps under the same host, just use a
single <Host>).

> appBase="webapps"

Mistake: using the same appBase for two <Host> entries will
double-deploy all of your webapps from that directory, which is probably
not what you wanted to do.

> <Context path="/client2/web" docBase="C:/Program Files/App/client2/web" crossContext="false"
debug="0" /> 

See my comments above.

> I get the error child name cannot be unique.

I'm guessing that the error you see is "child name *must be* unique".

> Since we have only one SSL created to share, any help would be greatly appreciated. 

The solution is simple: simply use a single <Host>.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message