tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rasputin <raspu...@idoru.mine.nu>
Subject Re: Different appBase for more virtual hosts
Date Wed, 04 Dec 2002 12:50:03 GMT
* cris.moreira <cris.moreira@mailserver.travelnet.com.br> [1220 11:20]:

> Hello. I'd like to know, or if you have some server.xml example to show me, 
> how can I configure more than one Virtual Host in Tomcat, and each host 
> pointing to a different directory of webapps. 

Normally when you define appBase, that defines a new direcotry like webapps,
i.e. if you have an appBase of 'foo', in a host 'foo.com' then requests to

'foo.com/test' get sent to the webapp in $CATALINA_BASE/foo/test/

> I know that I must set up the 
> parameter "appBase" in the tag <Host...></Host>, but can I have more than

> one <host...> inside an <Engine> or must I create another <Service>
of it? 

Multiple Hosts can share an Engine, yes.
-- 
Rasputin :: Jack of All Trades - Master of Nuns

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


Mime
View raw message