On Tue, Aug 21, 2001 at 05:25:42PM -0400, Gabriel J Zimmerman wrote:
> I have a server that has many virtual hosts, say
> http://www.myhost1.com/, http://www.myhost2.com, http://www.myhost3.com
> etc. etc.

Yer.. once did a site with 36 of these. It wasn't pleasant ;)

> Is it possible to create a webapp that is hosted at the / level for each
> of these hosts, where the servlets,tag libraries, and java classes
> located in the WEB-INF section would all be the same but where the docs
> and JSP files would be unique for each host? 

You can put your common classes into $TOMCAT_HOME/lib (or whatever it is
for 3.3 and 4.0). Taglib jars can go there, but the XML definition files
will have to be duplicated in the WEB-INFs.

> 
> By unique, I mean that each host would have its own html files, JSP
> files, image files etc., which would not be accessable from the other
> hosts.

Yep. Logically they're still separate webapps.

--Jeff

> 
> Thanks,
> 
> Gabe Zimmerman

Reply via email to