tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Villar <john.vil...@florhard.com>
Subject Re: Renaming the ROOT directory ?
Date Sat, 18 Sep 2004 14:42:43 GMT
What's your tomcat version? could you post your server.xml file to see 
if there's something wrong? i'm using virtual hosts with default apps on 
tomcat 5.0.18 and used the configuration i told you, and works pretty 
well......

John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com



Jean-Paul Le Fèvre escribió:

>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.
>
>  
>


Mime
View raw message