tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: server-*.xml
Date Tue, 11 Feb 2003 21:11:48 GMT

You can use XML to incorporate other files.  There is a special syntax, sort
of like "include" for JSPs.  I don't remember what it was, exactly, but
there was a thread on this awhile back.  I believe it's <!ENTITY ....>

http://marc.theaimsgroup.com/?l=tomcat-user&m=104422058910420&w=2

John


> -----Original Message-----
> From: Steve Bucknam [mailto:steve@TataraSystems.com]
> Sent: Tuesday, February 11, 2003 3:52 PM
> To: tomcat-user@jakarta.apache.org
> Subject: server-*.xml
> 
> 
> I want to create multiple contexts for a single server using the same
> port on Tomcat 4.1.18.  I need to accomplish this through multiple
> config (server.xml) files.  I read an post about being able to do this
> by creating files matching the pattern "server-*.xml".  I created a
> server-test.xml file with a new context but it is not 
> available.  Should
> this work?  I effectively want the following behavior:
> 
> 
>   server.xml:
> 
>   <Service>
>     <Engine>
>       <Host>
>         <Context path="/a" docBase="app1" unpackWARs="true" debug="0"
> reloadable="true" />
>         <Context path="/b" docBase="app2" unpackWARs="true" debug="0"
> reloadable="true" />
>       </Host>
>     </Engine>
>   </Service>
> 
> 
> But, I want to accomplish this through two files:
> 
>   server-a.xml:
> 
>   <Service>
>     <Engine>
>       <Host>
>         <Context path="/a" docBase="app1" unpackWARs="true" debug="0"
> reloadable="true" />
>       </Host>
>     </Engine>
>   </Service>
> 
>   server-a.xml:
> 
>   <Service>
>     <Engine>
>       <Host>
>         <Context path="/b" docBase="app2" unpackWARs="true" debug="0"
> reloadable="true" />
>       </Host>
>     </Engine>
>   </Service>
> 
> The apps should be available as:
> 
>     http://localhost:8080/a
>     http://localhost:8080/b
> 
> Is this possible?  If so, I assume all attributes of service, 
> engine and
> host would have to match?  Or are them cumulative?
> 
> Thanks,
> 
> Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message