tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AH NF <inter...@yahoo.com>
Subject Re: Virtual Hosts: path="/" without using ROOT folder?
Date Tue, 26 Feb 2008 22:48:08 GMT
> Thanks Mark, could my context.xml also just live in my WAR/META-INF  
> file?
>
> So let me get this right,  the location of "appBase" is purely for  
> where WARs are uploaded. Never should "document roots" live under it?
>
> So if I upload a war to "appBase" Tomcat then unpacks it to the  
> "context" "docbase"?
>





> On Feb 26, 2008, at 1:40 PM, Mark Thomas wrote:
>
>> Lessie Z. Mitch wrote:
>>> Sorry.. didn't finish... (hit the damned button)
>>> And my application context.xml files would read something like...
>>
>> No - completely wrong. In short (just doing one host) you want  
>> something like:
>>
>> /tomcat_home/conf/server.xml
>> <!-- virtual host mywebapp1 -->
>>     <Host
>>         name="mydomain1.net"
>>         appBase="home/web/mydomain1.net/webapps"
>>         unpackWARs="true"
>>         autoDeploy="true">
>>     </Host>
>>
>> Context file location (for ROOT webapp):
>> /tomcat_home/conf/Catalina/mydomain1.net/ROOT.xml
>>
>>
>> Contents of .../mydomain1.net/ROOT.xml:
>> <Context path=""
>>     docBase="/some/other/path/foobar.war"
>>  reloadable="true">
>> </Context>
>>
>> The docBase *must not* be under the appBase (home/web/mydomain1.net/ 
>> webapps)
>>
>> Mark
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message