On Saturday 18 September 2004 14:13, John Villar wrote:
> Your path attribute should have "/" and not "".

No. According to the tomcat config doc :

"If you specify a context path of an empty string (""), you are defining the 
default web application for this Host..."

Docbase should be (for
> your case, i will explain why it is wrong) "webapps/my_app". This is a
> bad configuration, because you're telling to your host that its root dir
> is within the root of another host.

No. My <Host> definitions have each an appBase="webapps/a_host"

better approach IMHO: create one
> "webapps" dir for every virtual host, say "webapps2" and "webapps3"
> (keeping one host with the default webapps) and point the 2nd host to
> "webapps2" and your 3rd host to "webapps3", then create for every host a
> default context with <Context path="/" docBase="my_app"/> and voila, you
> have 3 virtual hosts each one with its default context.

And 'voilà pas du tout' since you describe my current configuration which
cause the problem.

In fact the trick with the symbolic link works but it is not elegant.
I wonder whether this forced ROOT creation is a bug or a feature.

-- 
___________________________________________________________________

Jean-Paul Le Fèvre  * Mail : [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to